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.

Code Snippets / Sliding collision at any angle (DBC)

Author
Message
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 14th Jul 2003 01:10
I may have posted something like this before, but this is better. It does what the title says, it does it with planes. It isn't completely perfect, one tiny glitch (sticking on obtuse corners). I get 150-160 fps while colliding, if it is slower then increase the turning and speed variables. Here it is (DBC, DBPro not tried, but it could be adjusted easily)...
cuRant PRogekt: a three-de map editer
Why the hell'd you ask me for crying out loud!?!
Athelon XP 1400 Plus - Nvidia Geforce MX400 - 256mb RAM
andrew11
21
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 14th Jul 2003 05:03
Nice. This would be usefull for levels too with hidden plains, but would be a pain to have to put them all there. Useful feature for a level editor though .

P.S.
It works in Pro, except it gives me trouble with "Center Text" for some reason. Just change it to "Text"; it really dosen't matter.

"All programmers are playwrites and all computers are lousy actors" -Anon
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 14th Jul 2003 11:09
Yeah, if you had big levels then generally you would have a level editor. The sticking on corners (which you may have noticed) could be solved easily by having collision only working on one side of the plane, which would be sensible since most objects are thicker that 1 plane, they would require 1 plane on each side.

cuRant PRogekt: a three-de map editer
Why the hell'd you ask me for crying out loud!?!
Athelon XP 1400 Plus - Nvidia Geforce MX400 - 256mb RAM
Xeridox
20
Years of Service
User Offline
Joined: 19th May 2003
Playing: Scrap Mechanic
Posted: 17th Jul 2003 20:51
Hmmm I get a "command out of place" error at line 127 using DBPro....

IRC Channel: #darkbasic on server irc.uk-net.org Ports 6667 or 6668. Helpers and game serves welcome or just come and chat!
andrew11
21
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 18th Jul 2003 03:24
That's "Center Text" Change it to "Text" and it should work fine.

"All programmers are playwrites and all computers are lousy actors" -Anon
Dante Labon
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location:
Posted: 27th Jul 2003 10:48
Nope, command out of place still

Attreid
21
Years of Service
User Offline
Joined: 27th Nov 2002
Location:
Posted: 27th Jul 2003 15:38
very good

"He will come...the voice from the outer world,
bringing the holy war, the Jihad, which will cleanse the Universe and bring us out of darkness."
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 28th Jul 2003 10:56
works great in classic but i get a command out of place error at line 125 although it highlights 127?

You know whats weird???
Donald duck never wore pants, yet everything time he got out of the shower he put a towel around his waist...
Whats with that???

Login to post a reply

Server time is: 2024-03-29 12:04:23
Your offset time is: 2024-03-29 12:04:23