Rotating away from face normal

Game Engine, Players & Web Plug-in, Virtual Reality, support for other engines

Moderators: jesterKing, stiv

Post Reply
SolarLune
Posts: 0
Joined: Sun Feb 06, 2011 8:58 pm

Rotating away from face normal

Post by SolarLune » Sun Feb 13, 2011 1:27 am

Hey, so I'm working on something, and I need a way to rotate an object away from a face normal. This method needs to be done in Python, so I can't use the built-in RotFH button (I think that's what it's used for). Now, I can see the face normal info through an object's raycast function, but I can't directly rotate the object through the face normal, as I believe the three numbers are the sine values of the rotation. How would I rotate the object away from the face normal (so that it faces outwards)?
Check out my blog of game design and BGE tutorials at http://solarlune-gameup.blogspot.com/

Post Reply