I have a class "bumper" which extends Box, and a mouse event added to the "bumper" object in the world. I am trying to get the body to rotate 45 degrees on mouse click, and while I have been successful using .rotatation = 45, the physics do not rotate along w/ the body. What is the proper syntax? I've tried angular velocity as well as torque, and neither one gets the body to rotate.
thanks
Edit: essentially im trying to figure out how to get the bounding box to rotate with the body. Using .rotation rotates the box, but the corners of the box are no longerbound and objects passing through no longer report collisions
Hope that's more clear.
Thanks
thanks
Edit: essentially im trying to figure out how to get the bounding box to rotate with the body. Using .rotation rotates the box, but the corners of the box are no longerbound and objects passing through no longer report collisions
Hope that's more clear.
Thanks