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 / getting an objects coordinates.

Author
Message
mit45
15
Years of Service
User Offline
Joined: 28th Apr 2011
Location:
Posted: 4th May 2011 05:55
Say you've placed an object, is there any command or way to retrieve its coordinates? That is, so they might be stored in a variable in some way other than just typing in "Variable = #" where the # is just you typing the coordinates manually. Any help is great, thanks.
Eklypse
22
Years of Service
User Offline
Joined: 23rd May 2004
Location:
Posted: 4th May 2011 07:54
Try these commands

BASIC3D COMMANDS-
OBJECT EXPRESSIONS-

OBJECT POSITION X : Return Float=OBJECT POSITION X(Object Number)
OBJECT POSITION Y : Return Float=OBJECT POSITION Y(Object Number)
OBJECT POSITION Z : Return Float=OBJECT POSITION Z(Object Number)
mit45
15
Years of Service
User Offline
Joined: 28th Apr 2011
Location:
Posted: 4th May 2011 16:10
Haha thanks. I actually answered my own question about 60 seconds after posting this. Thanks for the help anyway

Login to post a reply

Server time is: 2026-07-10 19:48:38
Your offset time is: 2026-07-10 19:48:38