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 / Nuclear Glory Command???

Author
Message
Mitch
21
Years of Service
User Offline
Joined: 28th Sep 2003
Location: The Netherlands
Posted: 31st Jan 2004 13:54
Hi. Just bought the Nuclear Glory DLL, which is GREAT! Thank you NG! Though 1 thing I can't get to work, is that I don't want the object to slide down while standing still on a slope.. Is there a way/command to stop the sliding down?? Please tell me!

-Mitch

Me vs. The World...
nuclear glory
21
Years of Service
User Offline
Joined: 2nd Oct 2003
Location:
Posted: 31st Jan 2004 19:46 Edited at: 31st Jan 2004 19:47
Great

Yes, there is. It's defined in the SetCollisionsPRO() statement.

Look at the docs here:
http://www.nuclearglory.com/tutorials/NGColl/201/DBPro/SetCollisionsPRO.php

Under the "coll_response" parameter you'll find RESP_SLIDE_NO_SLOPES and RESP_SLIDE_NO_GRAV.

You'll probably be interested in the RESP_SLIDE_NO_GRAV setting. This setting was used in the '3rd_shooter' example to allow the soldier to walk up the ramp without sliding back down.

Lead Programmer/Director
Powerful Collision DLL for DBPro and DBC: http://www.nuclearglory.com
Mitch
21
Years of Service
User Offline
Joined: 28th Sep 2003
Location: The Netherlands
Posted: 1st Feb 2004 03:23
Ah, great! Thanks.. And how do I rotate my object so it matches the surface? Like in a racing game??

Me vs. The World...
nuclear glory
21
Years of Service
User Offline
Joined: 2nd Oct 2003
Location:
Posted: 1st Feb 2004 04:16
Look at the:

Vec2YawPRO()
Vec2PitchPRO()

Those allow you to align objects to a normal. So basically, you'd get the contact normal for your race track, feed the normal into those commands, and let it align the target object to the normal.

Those are used to align the laser sight to the wall in the 3rd_shooter example.

Lead Programmer/Director
Powerful Collision DLL for DBPro and DBC: http://www.nuclearglory.com

Login to post a reply

Server time is: 2025-05-22 11:38:56
Your offset time is: 2025-05-22 11:38:56