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

How to Make rigidbody.AddForce be Less the Further a RigidBody gets from an Object?

$
0
0
Hey guys, I have an object that needs to slow down the further it gets away from the ground. Using: rigidbody.AddForce (0, 10, 0); works fine, but I need it to be: rigidbody.Addforce(0,0,0) when it gets to a certain height. It needs to be done gradually, not just stop when it reaches said height. Any ideas on how to do this? Thanks!

Viewing all articles
Browse latest Browse all 1264

Trending Articles



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