Manually scripting "compute rotation"


#1

I want to add roationPP , I can do it on creation using Compute rotation, but If I add some rotationPP during Runtime, I get glitchy results, even if I try to reduce or kill rotationPP. I’ve tried initializing the angularVelocity a couple of different ways like the documenation says, but I’m not sure the right combination of syntax.

I’ve tried having rotationPP = angularVelocityPP and then adding some numbers to aVPP but it doesn’t seem to react to the collision friction properly.

I am also adding the rotationFrictionPP and rotationDampPP attributes.

How do I initialize angularVelocityPP to mimic what “compute rotation” is doing?

Thanks!

AndrewG


#2

nm I think what I need is in here (I hope)