axis of rotation
Blitz3D Forums/Blitz3D Programming/axis of rotation
| ||
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. |
| ||
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. |
| ||
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 |
| ||
alright. thanks |