I need to set my node perpendicular to triangle. I have a triangle, so i can get it normal. But i don't know how I can place my object to be perpendicular to triangle. I hope you understood me.
Sorry for my awfull english.
Setting node perpendicular to polygon
This is similar to methods used for decal nodes -
http://www.gamedev.net/reference/articl ... le1986.asp
You need to get the plane normal of the triangle you are placing the scene node on and use that for rotation. It's really not as simple as you make it out to be, what happens if the object is not setting entirely on a single triangle?
Research that stuff a bit and if you still need help, ask for more information.
http://www.gamedev.net/reference/articl ... le1986.asp
You need to get the plane normal of the triangle you are placing the scene node on and use that for rotation. It's really not as simple as you make it out to be, what happens if the object is not setting entirely on a single triangle?
Research that stuff a bit and if you still need help, ask for more information.