Vectors, Normals?

Blitz3D Forums/Blitz3D Beginners Area/Vectors, Normals?

Well, you could use ...

camerapick ( camera, mousex(), mousey() )
if Picked = dodecahedron
positionentity attached, pickedx(), pickedy(), pickedz()
aligntovector attached, pickednx(), pickedny(), pickednz(), 3
endif

You might have to move the shape a bit on the z-axis depending on how you create the entity .. 'attached'.

As for centering 'attached' on the poly, use pickedtriangle, get the average position of each vertex in that triangle and tformpoint from dodecahedron space to world space to get the position.

Hope this helps.

Stevie