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 / any one know the code for sliding collision

Author
Message
Terabyte
22
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 25th Jan 2003 18:19
my collision are sticky
with auto camera collision
any help
I have a word of advice...
..don't piss on an electric fence!
The Darthster
22
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 26th Jan 2003 01:26
I use my own box collision with separable velocity variables. If you define a collision box, and then restrict the velocity in the direction of the box, the other velocity will still be active, and you should get sliding collision.
Attreid
22
Years of Service
User Offline
Joined: 27th Nov 2002
Location:
Posted: 26th Jan 2003 01:38
you can try it :
if posy#, ~y# and ~z# are th coordinates an object :



and to make a collision box around an object :

note : the last number if 0, else the collision won't slide
and if you want a sliding collision for the camera, make a small invisible box with a collision system, and in every loop put it at the cam's coordinates, use the first code and position the camera on it

I'm following John, but I'm not john.
Lol, it is funnier in french

Login to post a reply

Server time is: 2025-05-19 16:21:28
Your offset time is: 2025-05-19 16:21:28