Setting Handle Point for Mesh?
Blitz3D Forums/Blitz3D Programming/Setting Handle Point for Mesh?
| ||
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... |
| ||
Use PositionMesh( ) |
| ||
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... |
| ||
Yeah positionmesh using negative coordinates where you want to set the handle |
| ||
There's a nice centremesh() function in the archives :o) |