Quantcast
Channel: Answers for "How to make a rigidbody hover giving it an upward force? Mine still doesn't stay even when the upward force and graviational pull are equal."
Browsing all 6 articles
Browse latest View live

Answer by GameVortex

Force and Gravitational acceleration is two different things. Force is applied with consideration of the object's mass while Gravity ignores mass. Try using Acceleration as the Forcemode:...

View Article


Answer by prof

Something like this void FixedUpdate(){ float yVel = rigid.velocity.y + Physics.gravity.y; //Howering rigid.AddForce(0, -yVel, 0, ForceMode.Acceleration); //Altitude rigid.AddForce(0,...

View Article


Answer by TheBombix95

hi Iqu, I've done this so many times that I've lost the count of it. Jokes apart, here's what I've done for mine: function FixedUpdate () { //you have to apply the force Always in FixedUpdate function,...

View Article

Answer by GameVortex

Force and Gravitational acceleration is two different things. Force is applied with consideration of the object's mass while Gravity ignores mass. Try using Acceleration as the Forcemode:...

View Article

Answer by prof

Something like this void FixedUpdate(){ float yVel = rigid.velocity.y + Physics.gravity.y; //Howering rigid.AddForce(0, -yVel, 0, ForceMode.Acceleration); //Altitude rigid.AddForce(0,...

View Article


Answer by TheBombix95

hi Iqu, I've done this so many times that I've lost the count of it. Jokes apart, here's what I've done for mine: function FixedUpdate () { //you have to apply the force Always in FixedUpdate function,...

View Article
Browsing all 6 articles
Browse latest View live


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