3D question

Blitz3D Forums/Blitz3D Programming/3D question

jfk EO-11110(Posted 2006) [#1]
I have a pivot that points to a mesh. How can I use the pivots pitch, yaw and roll to make a triangle face against the mesh? It should work kind of like alignToVector, but I have to use VertexCoords to "rotate" the triangle. The triangle must be positioned at the pivots position, size may be a radius R#.

Thanks for your help.


big10p(Posted 2006) [#2]
I think you need to explain a bit more what you want, jfk.

Do you want to create a single tri mesh at the point of the pivot, that faces the other mesh? If so, can't you simply create the tri mesh and then point it at the other mesh?


jfk EO-11110(Posted 2006) [#3]
No, the mesh contains a number of triangles and they need to be aligned individually.

Tho, the problem is partially solved, I simply parented 3 helper pivots around the main pivot, after pointing the main pivot to the mesh I can retrieve their position. Probably this is even faster since it's done by the built in 3d matrix.

Thanks noless.