Custom Rigidbody Controller and Moving Platforms
Hi Everyone,
I am working on my custom character controller using a rigidbody. This controller is designed for a 3D third person camera game. So far I've got the movement and rotation implemented by modifying the rigidbody.velocity and using addTorque() respectively. In order to give support to moving platforms, when checking if the character is grounded I am storing any possible rigidbody beneath into a variable. Then, using beneathRigidbody I managed to translate its movement to the character (i.e. the player moves along with the platform).
However, I can't figure out how to do the same thing with the platform's rotation (e.g. if the platform is a long rectangle and the character is on one of the sides, as soon as the platform starts rotating the character falls down instead of staying on top.)
Can anyone give me some help with this? I can upload pictures and code if it is necessary.
Thanks.
Your answer
Follow this Question
Related Questions
Making a crouch button for a rigidbody character controller without scaling item in hand 0 Answers
Rotate rigidbody to specified rotation using AddForce 0 Answers
Torque rigidbody toward desired rotation on two axes ignoring Y axes? 0 Answers
Tilt character with acceleration 1 Answer
How do I get a Rigidbody to rotate in the direction it is moving? 0 Answers