- Home /
A Rigidbody moving in a moving Rigidbody
I have a ship moving in relation to the scenery, then a person (the main camera) moving on the ship's bridge as a Rigidbody enclosed by Colliders. As soon as the ship moves, the person slides backwards. Not realistic! So I don't use Gravity, I make it Kinematic and the Capsule Collider triggers a script that detects collision and stops the the person that, otherwise, moves by mouse button-down control.
It works. But there are several obstacles on the bridge, as colliders. It is too easy to come into a collision, not really knowing how to move out of it.
If I was to use the physics built in Unity3D (as I do already with the ship's model) then the collision between the person (main camera) and the objects of the bridge would be more realistic and bounce back.
Any idea how I can have a Rigidbody moving in a moving Rigidbody to use gravity physics without sliding backwards as the ship moves forwards? I tried to change the Drag parameter but to no avail.