co-ordinates of front of mesh?

Blitz3D Forums/Blitz3D Programming/co-ordinates of front of mesh?

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.

Some badly written code...

P = CreatePivot()
PositionEntity P,EntityX(Entity),EntityY(Entity),EntityZ(Entity)
RotateEntity P,EntityPitch(Entity),EntityYaw(Entity),EntityRoll(Entity)

If Upper(EntityClass(Entity)) = "MESH" Then   ;this won't work in the majority of situations, trust me
     MoveEntity P,0,0,MeshDepth(Entity)/2   ;world 'front'
     ;MoveEntity P,0,MeshHeight(Entity)/2,0  ;world 'right'
     ;MoveEntity P,MeshWidth(Entity)/2,0,0   ;world 'top'
EndIf


Chances are this wouldn't work at all. *shrug*
Just trying to help.