i have a model. its like a 3d grid. .x object when i use this code to rotate the object i can see after a combination of presing left and up that the object is not level (at 90 degrees)
i cant give you the media
but just use a normal box will do i think
if you need the media i have no where ot upload..so get me through my msn
[email protected]
Rem Project: O's & X's
Rem Created: 14/08/2003 02:05:46
Rem ***** Main Source File *****
backdrop on
color backdrop rgb(0,0,0)
load object "box1.x",1
position object 1,0,0,0
position camera 0,0,-500
rotate camera 0,0,0
do
x#=camera position x()
y#=camera position y()
z#=camera position z()
if leftkey()=1 then gosub left
if rightkey()=1 then gosub right
if upkey()=1 then gosub up
if downkey()=1 then gosub down
loop
left:
for t=1 to 45
yrotate object 1,wrapvalue(object angle y(1)+2)
sync
next t
return
right:
for t=1 to 45
yrotate object 1,wrapvalue(object angle y(1)-2)
sync
next t
return
up:
for t=1 to 45
xrotate object 1,wrapvalue(object angle x(1)-2)
sync
next t
return
down:
return
>>TerraByte. Putting the Byte back into Terragramming<< If my post has less than 20 typos then it wasnt me who wrote it!
http://darkdayssoftware.250free.com/Logo394.GIF[/img]