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 Discussion / how do I store an object's x,y,z rotation values in variables?

Author
Message
Gowmars
21
Years of Service
User Offline
Joined: 26th Sep 2003
Location: United States
Posted: 11th Nov 2004 01:44
When I rotate an object how do I store the x,y,z values of their rotation in variables.

also how do I store and x,y,z values of an objects position in variables.

i tried looking for the commands to do this but i could not find them. I know their really simple so if someone could give me the commands that would be great. I mainly need the answer to my first question, but i will be using the position values later on so im asking for that now while im at it.

Thanks

Gowmars
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 11th Nov 2004 06:21
OBJECT ANGLE X() , Y() and Z()
OBJECT POSITION X(), Y() and Z()

BatVink
http://biglaugh.co.uk/catalog AMD 3000+ Barton, 512Mb Ram, 120 Gig Drive space, GeForce 5200 FX 128 Mb, Asus A7N8X Mobo.
Terms & Conditions apply
Essence
22
Years of Service
User Offline
Joined: 12th Oct 2002
Location: The Netherlands
Posted: 11th Nov 2004 06:38
For example:

ax#=object angle x()
ay#=object angle y()
az#=object angle z()

px#=object position x()
py#=object position x()
pz#=object position x()

--
Gowmars
21
Years of Service
User Offline
Joined: 26th Sep 2003
Location: United States
Posted: 12th Nov 2004 10:57
Thanks!!!!!

Login to post a reply

Server time is: 2025-05-24 12:23:58
Your offset time is: 2025-05-24 12:23:58