RotateEntity

Blitz3D Forums/Blitz3D Beginners Area/RotateEntity

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.

The order is Y,X,Z and subsequent turns are about the newly rotated axes.
Graphics3D 400, 300, 0, 2

e=CreatePivot()

TurnEntity   e, 0, 20, 0
TurnEntity   e, 10, 0, 0
TurnEntity   e, 0,  0, 30

Print " Angles are  "+EntityPitch(e)+" "+EntityYaw(e)+" "+EntityRoll(e)

RotateEntity e, 10, 20, 30

Print " Angles are  "+EntityPitch(e)+" "+EntityYaw(e)+" "+EntityRoll(e)

WaitKey()  :  End