I’ve been searching for ways to constrain the rotation of an object, but I’ve run into a few problems (this is also my first time venturing into scripting in the game engine):
-
I can’t use an ipo based method because the object tracks to the mouse using a script
-
the object behaves exactly as I want when I switch off the “3d” button in the trackTo actuator, but I need this behaviour in the y-z plane instead of the x-y plane
-
I can’t parent an empty to the object and do collision detection on the empty, since the nature of the constraint is not max/min, but more like an axle (I want to prevent rotation on one axis completely)
-
I’ve tried using the setOrientation() function in the api, but I’d really rather not reset the rotation matrix on every frame, since this seems like a waste of resources
-
There used to be a handy rotation constraint actuator in the 2.34 api, but it has disappeared as far as I can tell
Does anyone know why the rotation constraint has been removed, and is there any other means of doing what I want?
thanks for any tips