I’m having trouble getting relativeVelocity to show anything other than zero. The setup is somewhat simple:
The object with the rigidbody (the player) is standing still while the world moves around it. It has a Box collider which is bolted onto one of its child objects.
The object it is crashing with is travelling around a globe using transform.RotateAround, and also uses a Box collider (It does not have a rigidbody).
You’d think this would be a relatively simple setup, yet when they crash together, it triggers a collision like it should, but the relativeVelocity is always (0.0, 0.0, 0.0) (collision script is on the player root object).
Any ideas about what I’m doing wrong? Is this because I’m controlling the objects with transform instead of accelerating the rigidbody? Is there something else I could be using instead to find collision force if relativeVelocity is the wrong solution?