AlignToVector

Blitz3D Forums/Blitz3D Programming/AlignToVector

Jerome Squalor(Posted 2007) [#1]
hi can some one give me a detailed explanation on how and for what i should use the AlignToVector command?

thnx in advance


D4NM4N(Posted 2007) [#2]
Theres a good example in the castle demo example (if i remember) that alignes the bullet holes to the walls.

Align to vector is a good way of aligning an object to a surfaces normals after collision.
After a collision you get colisionNX(),NY & NZ which are the values you use for your vector alignment usually with the Y axis (if memory serves) for usual use. You can also use it with linepicks etc. (pickedNX etc ) or any manually calculated vectors.


Jerome Squalor(Posted 2007) [#3]
Thankz a lot it worked great