Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Painter
18
Years of Service
User Offline
Joined: 3rd Jul 2005
Location: Switzerland
Posted: 7th Sep 2005 11:13
In the "Move Object" command it is said "the command uses the
current direction of the object". What is the current direction ?
Wich axis leads the object?
When I use the ShowCase Example for this command lots of lines print
on a black screen, for minutes. That's all !
Does somebody know the answer ?
Thanks for your reply.
David T
Retired Moderator
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 7th Sep 2005 14:08
Quite literally the current direction!

An object starts out at 0 degrees on X, Y and Z axes. Assuming the object is at 0/0/0 and the camera is at 0,0,-10 (i.e. behind object) that means the object is facing directly forwards.

Rotating on the y axis 180 degrees means the ovject now faces backwards, i.e. towards the camera.

Rotating on the X axis tiles the object up or down.

The Z axis rolls the object.

MOVE OBJECT just moves the object forward in those directions

"A book. If u know something why cant u make a kool game or prog.
come on now. A book. I hate books. book is stupid. I know that I need codes but I dont know the codes"
Painter
18
Years of Service
User Offline
Joined: 3rd Jul 2005
Location: Switzerland
Posted: 7th Sep 2005 16:07
Thank you for your answer.
It confirms what I thought. But why if I tilt the object(a simple cube), -90 on the X axis, meaning that what was facing forward is now facing upward, the object doesn't move at all.
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 7th Sep 2005 20:58 Edited at: 7th Sep 2005 21:00
Make Object Cube 1,10 `places object at 0,0,0 facing +z axis (default direction).
Move Object 1,1 `moves the object to 0,0,1
Turn Object Right 1,90 `turns the object to facing the +x axis
Move Object 1,1 `moves the object to 1,0,1
Pitch Object Up 1,90 `turn the object up facing the +y axis
Move Object 1,1 `moves the object to 1,1,1

Hope that helps.


Open MMORPG: It's your game!
Painter
18
Years of Service
User Offline
Joined: 3rd Jul 2005
Location: Switzerland
Posted: 8th Sep 2005 11:21
It helped. Thanks.

Login to post a reply

Server time is: 2024-04-20 12:14:29
Your offset time is: 2024-04-20 12:14:29