Hello, i’m doing this 3D game, where you can fly around space and you can land on planets, where you automatically rotate and land on your feet on the planet, wich has bigger gravity (like space engineers), so i don’t know how to write the gravity script for the rigidbody if rigidbody already has gravity by decreasing the Y. Please help me (13 year old developer), sorry for my bad english, thanks alot.
KSP huh? Anyways, don’t use the gravity scale, make your own.
{
float gravity = -2.4f;
void Update ()
{
rigidbody.velocity.y += gravity * Time.deltaTime;
}
public void ReverseGravity()
{
gravity = -gravity;
}
Heres something you can work out of, I’m also 13 lol!