Strange gravity using rigidbody on vehicle
Heya, I've included a video just so you can see what I'm talking about; basically the gravity seems to change all of a sudden.
I've moved the center of mass to slightly beneath the car to make sure it doesnt tip all over the place, yet I tried removing this and the issue persisted. I'm using Translate instead of AddForce because it feels more controlled to me.
rigidbody.centerOfMass = centerOfGravity.localPosition;
transform.Translate(0,0,speed);
Anyone tried this/have any ideas?
Answer by FortisVenaliter · Jun 09, 2016 at 02:54 PM
It's the translate. If you're using a rigidbody, and move it without force, it gets confused. It's expecting to move like actual physics, based on forces, so movement absent those forces causes some strange effects.
Also, I believe the transform.Translate you're using is in world space, not local space.
I think the issue is with the box collider - the first two are hit straight on, while the next is slanted, and that gets weird somehow.