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 / get static collision hit - whut!?

Author
Message
Stora tomtefar
20
Years of Service
User Offline
Joined: 15th Mar 2005
Location: Göteborg, Sweden
Posted: 30th Oct 2005 13:20
Hellu!

The command "Return Value=GET STATIC COLLISION HIT ( oldx1,oldy1,oldz1,oldx2,oldy2,oldz2,nx1,ny1,nz1,nx2,ny2,nz2)" is something I don't understand... What do these variables mean? Has it got something to do with the command "GET STATIC COLLISION X(Object Number)", and if it is so, how? If I want object 1 to stop, or slide against the edge when colliding with a static object, how do I do?

"Even though I'm ugly, I'm extreamly sexy!"
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 30th Oct 2005 13:33
Wrong language, mate. I think you meant to put this in 'DarkBASIC Professional Discussion', not 'DarkBASIC Discussion'. Unless you're talking about a DLL. :/
Stora tomtefar
20
Years of Service
User Offline
Joined: 15th Mar 2005
Location: Göteborg, Sweden
Posted: 30th Oct 2005 13:44
No, I looked it up in the help-files here within DBC, and it should be the regular dark basic language?... Right? Or, am I mistaking? Here what is says about the command:

"GET STATIC COLLISION HIT
You can use this command to detect whether a specified area within your 3D world is touching a static collision box. By specifying old and recent positions of the specified area, this command not only returns a one if a collision has occured, but fills the get static colliion x,y and z expressions with adjustment values. Applying these values to an object or entity will give the impression of sliding collision."

"Even though I'm ugly, I'm extreamly sexy!"
NanoBrain
20
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Portland, OR
Posted: 30th Oct 2005 17:18
Stora tomtefar,

Your correct. These are DBC enhanced commands.



+NanoBrain+
Stora tomtefar
20
Years of Service
User Offline
Joined: 15th Mar 2005
Location: Göteborg, Sweden
Posted: 30th Oct 2005 21:32
So how does it work?

"Even though I'm ugly, I'm extreamly sexy!"
Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 31st Oct 2005 10:57
This isn't a enhanced command...

I used it once, but I found collision boxes much more effective so I left it behind.

This is the example that comes with DBC:



get static collision hit tells you if there is a collision.
When there is, DBC stores the adjustement values in the get static collision x/y/z(objnr).

Examine the example carefully and you'll understand.

Immunity and Annihalation makes Immunihalation...

Login to post a reply

Server time is: 2025-05-22 12:50:55
Your offset time is: 2025-05-22 12:50:55