Centering Meshes

Blitz3D Forums/Blitz3D Beginners Area/Centering Meshes

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

most times it works with:
fitmesh mesh, -meshwidth(mesh)/2,-meshheight(mesh)/2,-meshdepth(mesh)/2,meshwidth(mesh),meshheight(mesh),meshdepth(mesh)

tho mattys code may be more bullet proof.