- Home /
What is the velocity of Gravity?
Okay, this might seem like a weird question, but basically, to make an airplane fly flat and level, the lift created by the wings must be equal to the force of Gravity pushing the airplane down.
So what is the velocity? In terms of (0,x,0), so I can make my lift the opposite.
(Eg. x = gravity and y = lift and y = -x.)
Answer by JoaquinRD · Aug 17, 2013 at 07:28 PM
Gravity in Unity can be found and adjusted in the PhysicsManager found under Edit>Project Settings>Physics. The default force applied by Gravity is (0, -9.81, 0), so you would have to apply a constant force of (0, 9.81, 0) in order for an object to stay perfectly still while using gravity and not resting on anything.
Of course, you could just turn off gravity for that object...
Thank you very much! $$anonymous$$y lift is currently created using
rigidbody.AddRelativeForce (0,50,0,Force$$anonymous$$ode.Acceleration);
And I am using a function to balance it at level flight, which is
rigidbody.AddRelativeForce (0,-40.19f,0,Force$$anonymous$$ode.Acceleration);
So I have an actual lift of 9.81, right? I'm just making sure I'm not missing anything, sorry for being a noob :P
It looks like you would have an actual lift of 0 (50 + (-40.19) + (-9.81))
Ah, yes, the actual lift is 0 because the lift is equal to gravity, which is exactly what I wanted. Thank you very much, if I could thumb you up more than once then I would!