# 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.

### DarkBASIC Professional Discussion / Move Object

Message
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 ?
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 ?
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"
Posted: 7th Sep 2005 16:07
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.
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.