Im working on an early prototype and i havent found a good solution for my problem.
I want to move a player (with attached Rigidbody) on a ship (with attached Rigidbody). The ship can be moved via cockpit. When the ship changes its position/rotation, the player should stay on the same position relative to the moving ship.
I tried different solutions:
set the velocity of the player to the velocity of the ship via Rigidbody.GetPointVelocity
The most “realistic” solution is fine-tuning the values for friction between the two bodies. The reason in the real world why the player is moving with the boat is friction, so why not just implementing it that way?
I definitely not recommend parenting Game Objects with Rigidbodies attached!
this may be a stupid idea but try parenting the player to the ship? that way when the ship moves the player moves with it
– arain55Since your going to deal with multi-player I would suggest against using rigid bodies when you can, is there a specific reason other than add force?
– jmgek