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 to use objects as floor

Author
Message
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 30th May 2004 15:56
No I'm not talking purely collision.
I can now make an object tilt to stay on a matrix but is it possible
to do the same with an object for floor?
I'm using DBC.

Current Projects: Dark_Worlds_Map_Editor version0.1 [email protected]
Kentaree
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 30th May 2004 17:33
Uhm, can you elaborate? "Make an object tilt to stay on a matrix", what do you mean by that?

Its not a bug, its a feature!
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 30th May 2004 17:43
I mean that, for instance, if you have a car on a tilting track then the car rotates to keep all 4 wheels on the track. Like in the Tank demo.

Current Projects: Dark_Worlds_Map_Editor version0.1 [email protected]
ReD_eYe
22
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 30th May 2004 19:28
yup, basically you just need a function to replace "get ground height" in your tilt routine...
Something like this i'd imagine :

obj is the model you are using
x# and z# are the coordinates above the model, just like get ground height.
This will only work for models that are structured similarly to matrices, so it won't work very well for a building model for instance.

However after writing that, i realised there is no intersect object function in dbc, although if i remember correctly, someone released a library of functions for dbc and intersect object was one fo them.

TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 30th May 2004 22:22
Any idea where I can get that library?

Current Projects: Dark_Worlds_Map_Editor version0.1 [email protected]

Login to post a reply

Server time is: 2025-05-24 00:54:12
Your offset time is: 2025-05-24 00:54:12