Setting Handle Point for Mesh?

Blitz3D Forums/Blitz3D Programming/Setting Handle Point for Mesh?

Genexi2(Posted 2004) [#1]
Was wonder if theres anyway to change the handle of where entity\mesh operations like RotateEntity\Turn\Translate\Etc are performed?

Recently added in an option to rotate a turret on a tank for my tank game around, to find out it doesnt rotate at the point which I wanted it to rotate at (which was 0,0 in the modeller I use, Wings3d).

I get the feeling I might have to use a pivot, parent turret to it, and manually position it above my tank...


Michael Reitzenstein(Posted 2004) [#2]
Use PositionMesh( )


Genexi2(Posted 2004) [#3]
Ah thanks, thats the ticket, just annoying tryin to get the mesh positioned exactly on Blitz's idea of the position "0,0,0" on the entity...


Rob(Posted 2004) [#4]
Yeah positionmesh using negative coordinates where you want to set the handle


Ross C(Posted 2004) [#5]
There's a nice centremesh() function in the archives :o)