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 / Non-Stick collision and stairs

Author
Message
Rick the Programmer
21
Years of Service
User Offline
Joined: 23rd Mar 2004
Location: Maryland
Posted: 26th Mar 2004 14:24
How do I get collision to stop stick against the wall? When the player runs into it they dont move x or y towards the other model and i have to face parallel or farther away from it...

Any idea how to make the character slide?


Also with the floors and stairs the player just sticks on them and doesnt really move at all on them.. I want to make a 2nd floor to a house and I cant get it to have him run across..

Ask not for whom the bell tolls;
It tolls for ye!
nuclear glory
21
Years of Service
User Offline
Joined: 2nd Oct 2003
Location:
Posted: 26th Mar 2004 14:33
Take a look at our collision system, it is designed to handle situations just like that. Even stairs with sliding collision

Website at: http://www.nuclearglory.com

Lead Programmer/Director
Powerful Collision DLL for DBPro and DBC: http://www.nuclearglory.com
Rick the Programmer
21
Years of Service
User Offline
Joined: 23rd Mar 2004
Location: Maryland
Posted: 26th Mar 2004 15:33
Thanks, looks good, I'll try it

Ask not for whom the bell tolls;
It tolls for ye!
Rick the Programmer
21
Years of Service
User Offline
Joined: 23rd Mar 2004
Location: Maryland
Posted: 27th Mar 2004 00:04
I'm having trouble... it keeps saying syntax errors on Setcollisionpro() and startcollisionpro() etc

Ask not for whom the bell tolls;
It tolls for ye!
nuclear glory
21
Years of Service
User Offline
Joined: 2nd Oct 2003
Location:
Posted: 27th Mar 2004 00:13
Firstly, you need the enhanced version of DBC if you don't already have it. Sorry, forgot to mention that earlier. The enhancement pack provides DLL support so there's really no way around that, lol.

Instructions are at the top of the demo code and should be in the ReadMe.txt file as well.

Yep, here they are:

***** Integration Instructions:

- Place the "NGCollision_DBC.dll" file in the directory with your EXE and/or DBC project.

- Make sure the "NGCollision.dba" file is included into your project with:

#include "include/NGCollision.dba"

(This file contains functions to communicate with the DLL, so it is very important)

It is highly recommended to put this bit of code at the very top of your program:

TYPE_NGC_ELLIP=1
TYPE_NGC_MESH=2

ELLIP_2_ELLIP=1
ELLIP_2_POLY=2

RESP_STICK=1
RESP_SLIDE=2
RESP_SLIDE_NO_SLOPES=3
RESP_SLIDE_NO_GRAV=4
RESP_NONE=5

DYN_NO_RESP=1
DYN_RESP=2
DYN_RESP_LOCK=3
DYN_RESP_LOCK_NOTURN=4

This will make it a lot easier to read the "SetCollisionsPRO()" commands as well as the ray-cast functions.

And you should be all set.

Lead Programmer/Director
Powerful Collision DLL for DBPro and DBC: http://www.nuclearglory.com
Rick the Programmer
21
Years of Service
User Offline
Joined: 23rd Mar 2004
Location: Maryland
Posted: 27th Mar 2004 01:49
oh.. I have the trial at the moment but I'm getting DBPro soon, thanks

Ask not for whom the bell tolls;
It tolls for ye!

Login to post a reply

Server time is: 2025-05-31 18:56:28
Your offset time is: 2025-05-31 18:56:28