Firstly, i won’t use BodyGyro
because it’s too rigid im my opinion (along with other bugs that occured). This will be used in a “custom character movement” type thing, and i want it to be HEAVILY physics based.
On to the question at hand:
How can i keep an orientation with BodyAngularVelocity
?
I think the best way of doing this is by aligning vectors (Up, Look, Left vectors). AKA: Calculate the difference and somehow convert it to angular velocity.
But as to how? I have almost no clue.
Example problem:
I have a green and a red block. I need to align red’s orientation to greens’s.
- I have to calculate the difference in rotation.
- I have to use this difference to calculate angular velocity.
How would i go about writing this in code?
Any help is appreciated.