Hi all,
I want to rotate a plane around its lefthand edge like a page anchored to the spine of a book.
What I have tried so far is the following:
CreateObjectPlane(1,64,64) - this is centered at 0,0,0 on the x,y,z axis.
SetObjectPosition(1,32,0,0) - Move the plane 32 units to the right along the x axis so that the left-hand edge is now at 0.
SetCameraPosition(1,0,0,-500)
SetCameraLookAt(1,0,0,0,0)
do
RotateObjectGlobalY(1,1) - Rotate the object around the global Y axis.
loop
At this point I expected the rotation around the global Y axis to give me the effect I'm looking for, but for some reason it still seems as if the plane is rotating around its own local axis.
What have I overlooked?
Thanks.
//******************************
// Coding In BASIC using AppGameKit V2
//******************************