Quantcast
Channel: Questions in topic: "addforce"
Viewing all articles
Browse latest Browse all 1264

Increase force/size the longer input has been held down.

$
0
0
So I've got a character who on left click, instantiates and fires a bullet from his gun at a constant force using rigidbody.addforce but now I want to add it so the longer you hold the left click down, it will increase in size and force (with a capped limit) until then when you release it fires the projectile. It's sort of like Samus' bullet in super smash Bros. The longer you hold down it charges more. Thanks all answers appreciated.

Viewing all articles
Browse latest Browse all 1264

Trending Articles



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