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
Excalibar
21
Years of Service
User Offline
Joined: 5th Oct 2002
Location:
Posted: 6th Dec 2002 21:22
When I am using the move object command it moves the object one way and does not change direction even when I rotate the object. Should I be using another command|??
UberTuba
21
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Brittania
Posted: 6th Dec 2002 21:35
well, really you should not be using rotate object, use the newxvaluex/y/z() command or better using cos,sin,and tan

Life is a terminal disease.
You never survive it.
haggisman
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 6th Dec 2002 22:06
post some code!

Specs:- 1GHZ athlon, Radeon8500, 192mb ram, winxp
ToXic
21
Years of Service
User Offline
Joined: 8th Sep 2002
Location: Australia
Posted: 6th Dec 2002 22:08
Simple Rotate Object code.

Sync On:Sync Rate 0
Make Object Cube 1,25

Do
Move Object 1,2.0
If LeftKey() Then Dec Y#,1.0
If RightKey() Then Inc Y#,1.0
If UpKey() Then Dec X#,1.0
If DownKey() Then Inc X#,1.0
Rotate Object 1,X#,Y#,Z#
Sync
Loop

ToXic.
UberTuba
21
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Brittania
Posted: 6th Dec 2002 22:43
Here is the code:

xmove# = movedistance# * sin(yangle#)
ymove# = movedistance# * cos(xangle#)
zmove# = movedistance# * cos(yangle#)
the 3 move#s will reurn how far the object moved in each dimension. yangle# and xangle# are the the angle rotations of the object (zangle# not required). movedistance# is how far you want to move the object in total
Bdy, didn't you learn about cos/sin/tan at school

Life is a terminal disease.
You never survive it.
haggisman
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 6th Dec 2002 22:57
yep, but i was asking excalibar to post his code to find out what the problem was.

Specs:- 1GHZ athlon, Radeon8500, 192mb ram, winxp
mimesis
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Norway
Posted: 7th Dec 2002 00:02
Toxic, you're code works. Whats the problem?

Login to post a reply

Server time is: 2024-04-30 10:37:07
Your offset time is: 2024-04-30 10:37:07