Quick question that I'm hoping has a simple answer. I've implemented Chipmunk in my project and I need to rotate an object around its y-axis. Since Chipmunk controls the position, rotation and scale of the body, I can't simply do:
Code: Select all
gameObject.transform.rotation.eulerAngles.y = 45;
Code: Select all
Chipmunk.UpdatedTransform(gameObject)
I also tried:
Code: Select all
body.angle = 45;
Any help would be great. Thanks
Ryan