axis of rotation

Blitz3D Forums/Blitz3D Programming/axis of rotation

Cousin Gilgamesh(Posted 2005) [#1]
Does anyone know how to move a mesh's axis of rotation relative to the mesh itself without using a parent pivot point? My mesh's axis of rotation was not centered, and I wasn't getting the desired results using a pivot point.


GfK(Posted 2005) [#2]
PositionMesh.

Failing that, you can re-export it from your modelling software. Ensure that world coords 0,0,0 in your modelling software are positioned where you want the axis to be, BEFORE you export.


Picklesworth(Posted 2005) [#3]
This code, which has hardly been tested, but has been used for exactly what you want, should help with that:
http://www.blitzbasic.com/codearcs/codearcs.php?code=1364
There are probably others too, but mine is obviously the first one that came to mind.


Edit: Ah, here's another: http://www.blitzbasic.com/codearcs/codearcs.php?code=732


Cousin Gilgamesh(Posted 2005) [#4]
alright. thanks