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 / movement on 3d objects

Author
Message
healthyaddiction
22
Years of Service
User Offline
Joined: 20th Sep 2002
Location:
Posted: 17th Dec 2002 15:29
im interested in finding a good way to allow an object to move freely on a 3d object, up slopes and everything. Im not sure about a thing on ow to do it though. Also how to get an angle at the object so i can rotate to the angle of the object. And please dont advise to se matrices or terrains.

Please help me work it out.
keep the addiction healthy
Ratty Rat
22
Years of Service
User Offline
Joined: 24th Sep 2002
Location:
Posted: 17th Dec 2002 15:53
I know of no easy way of getting the angles of an objects faces, or their location in space (which is what I think you are asking).

If your object is a cube or a sphere you can do it mathematically of course (which is probably why spherical and box collision detection is built into DBPro).

Otherwise you would either have to decode the object using memblocks and then mathematically work out the faces angles/positions or, if your objects are not too complex, you could make a mapping of the faces etc in arrays.

If its landscapes and buildings you want to traverse then you DO want to look at the BSP and Terrain commands, but thats not really my area at the moment...
Kangaroo2
22
Years of Service
User Offline
Joined: 26th Sep 2002
Location: United Kingdom
Posted: 17th Dec 2002 17:06
Yeah the only easy way to do this is with BSP but many people myself included find this doesn't work properly in DBPro yet.

If you just want to check for slopes etc on the floor, you can use a matrix and get ground height.

Otherwise I know of no EASY way to do this

* If the apocalypse comes, email me *

Login to post a reply

Server time is: 2025-05-15 16:09:26
Your offset time is: 2025-05-15 16:09:26