Centering pivot of mesh

Blitz3D Forums/Blitz3D Programming/Centering pivot of mesh

Jeroen(Posted 2003) [#1]
Hi!

I got a model of a character, but it seems, when I use TurnEntity, the character is not being moved around the exact middlepoint. How can I determin the exact middle of a mesh?

Thank you.


Ross C(Posted 2003) [#2]
There is some code in the code archives to recentre a mesh.

Yep...here it is. Centre Mesh.

http://www.blitzbasic.com/codearcs/codearcs.php?code=14

:)


Rob(Posted 2003) [#3]
If you want utterely more control it's simple how this stuff works. When you use PositionMesh and not PositionEntity, you position the mesh around the pivot. So use that if the above isn't working out.


Jeroen(Posted 2003) [#4]
thanks! must have been the import problem