Question on creating pivot POINT

Blitz3D Forums/Blitz3D Programming/Question on creating pivot POINT

Jack(Posted 2011) [#1]
I have a flat mesh constructed.

I want to turn this mesh around the point indicated by an object.


Jack(Posted 2011) [#2]
Sorry about the above post. Hit the "post" by mistake.

I have a flat mesh constructed.

I want to turn this mesh around the point indicated by an object.

The object then needs to turn to face another direction(I have no problem with this at the moment).

I'm sure this is easy but I'm having no luck with doint it.


Kryzon(Posted 2011) [#3]
Align a pivot with the origin object.
EntityParent myPivot, originObject, False ;Using the last parameter so the pivot is automatically aligned.
EntityParent myPivot, 0 ;Unlink the pivot to the origin object. EntityParent was just used for aligning.

Parent your flat mesh to the pivot.
EntityParent flatMesh, myPivot
Rotate the pivot as required.