Quantcast
Channel: Answers by "2d4Games"
Viewing all articles
Browse latest Browse all 24

Answer by 2d4Games

$
0
0
rigidbody.addForce and addRelativeForce are acceleration modifiers, that slowly increase speed. What you want to do is set rigidbody.velocity to a value, as that will produce instant movement and it won't be sluggish or speed up unexpectedly. Also, when setting the velocity vector, remember to have a scalar multiplier on it so you can easily control the speed. Something like: var speed = 10; //This is a multiplier that you can easily tweek in unity. rigibody.velocity = Vector3(0,1,0) * speed; //multiply the direction by an appropriate speed, Vector3(0,1,0) is straight up.

Viewing all articles
Browse latest Browse all 24

Trending Articles



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