How to rotate a body (and connected ones) instantly?

Post Reply
TonyS
Posts: 10
Joined: Sat May 27, 2017 8:16 am

How to rotate a body (and connected ones) instantly?

Post by TonyS »

Hello,

I am trying to rotate a body instantly and meanwhile, I want all the other bodies connected to it with a constraint, rotate too.

I cannot apply torque. I want it instantly.

I cannot set center of mass transform as it will just rotate the parent body as if it was already rotated in the modelling program.

So, is there are way to make the whole thing rotate as if I had applied torque to rotate it to a certain degree?
erbisme4@yahoo.com
Posts: 41
Joined: Fri Apr 29, 2016 2:41 pm

Re: How to rotate a body (and connected ones) instantly?

Post by erbisme4@yahoo.com »

You can write your own method that takes in a transform and individually transforms each body connected through the constraints. This is like teleporting, so it's not recommended.
Post Reply