Quantcast
Channel: Questions in topic: "hold"
Viewing all articles
Browse latest Browse all 154

Grab and throw object immediately

$
0
0
Hello everyone, I would like that the player could grab an object and throw it using some force depending on the speed of the mouse and the angle/direction, I am using the script "DragRigidbody.js", it works well but there is an issue: The script makes sure to grab an object and can hold as long as the player would until it releases the right mouse button. What I would like is to only allow the player to catch an object and throw it immediately, for example grab it for 0.3 seconds, otherwise the object falls from his hands. Any help, please? Thanks

Viewing all articles
Browse latest Browse all 154

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>