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.

Newcomers DBPro Corner / 3D movement of objects

Author
Message
octave
21
Years of Service
User Offline
Joined: 6th Apr 2003
Location: U.K
Posted: 1st May 2005 05:22
hi there everybody

could someone help me in how i go about doing 3D movement of objects
as i know how to move them with the move object command but dont know how to make the object stop at a certain position in 3D space or move somewhere else in 3D space.

for eg : box in the middle of screen(position 0,0,0) then move box left to the left of the screen then making it stop at the side of the screen as an example.

any help would be appreciated
Foxy
19
Years of Service
User Offline
Joined: 4th Jan 2005
Location: The Dale, South Australia
Posted: 1st May 2005 12:16
Here is some bounding box code. This is about as simple as it comes, what it does is get the position of the object in the x# and z# variables, checks if they are out of the specified area and if so, sets them back to the edge of that area. Note that the actual wall objects are just there for decoration in this demo. To change the bounding box, you need to change the values in the group of if statements that checks the variables.



Cheers.

My 1337 site:

Login to post a reply

Server time is: 2024-09-23 19:36:14
Your offset time is: 2024-09-23 19:36:14