Character controller. Copy velocity from moving object and add velocity from RotateAround
I have a train in which character can freely move. I added inside Firstperson character controller extramove on .Move function which gets the rigidbody.velocity from the train. It works great. something like this cc.Move(movement+train.velocity) * Time.fixedDeltaTime But the problem is the train is sometimes turning. When the train turn happen the character should also calculate the position based on the coordinates from rotate around pivot of the train. I need help to get this formula. train.velocity + ? Here is the picture to visualize the issue Orange arrow is the unwanted movement of the player.
I still did not made it, just FYI, even its old question you can still answer and i will appreciate it :)
Your answer
Follow this Question
Related Questions
Switching platforms causes so many errors why? 0 Answers
Moveing through Plane changes velocity 0 Answers
Moving platform causing Janky movement 0 Answers
2d character controller tutorial stuck while walking 0 Answers
Why is my character controller affected by gravity when Root Motion is activated ? 2 Answers