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 / Need help with sliding collision

Author
Message
Manticore Night
21
Years of Service
User Offline
Joined: 23rd Oct 2003
Location: Ouinnipeg
Posted: 14th May 2004 08:52
Hi, I'm making a new game and I'm going to try to use sliding collision. Only one problem, I can't figure out how to use it. I admit this is probably increadibly easy, but could someone post the correct way of using it.

It's amazing how much TV has raised us. (Bart Simpson)
Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 14th May 2004 14:29
yes.
here take a look at this post:
http://www.thegamecreators.com/?m=forum_view&t=30050&b=1

there is a link to a 3d math collision tutorial

it helped me a lot!

Thief 3 : Deadly Shadows, The BEST game in the WORLD!
Emperor Baal
21
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 14th May 2004 14:49 Edited at: 14th May 2004 14:49
Thats quite an empty link you've got there n0id

but here's a 3D math collision tutorial:

http://www.geocities.com/hatesurvivor/MathColl.htm

Quote: "
UPDATED

Amd 2800+ 1024mb pc3200 A7N8X - Deluxe Ati Radeon 9800PRO 256mb
"
Manticore Night
21
Years of Service
User Offline
Joined: 23rd Oct 2003
Location: Ouinnipeg
Posted: 15th May 2004 01:19
Just an example like this would be nice.


It's amazing how much TV has raised us. (Bart Simpson)
NathanF
21
Years of Service
User Offline
Joined: 24th Mar 2004
Location:
Posted: 15th May 2004 11:54
I havent had the chance to learn any sliding collision comands, but if all you want to do is walls (that dont rotate) this works:

if x#>1000 then x#=1000
if x#<0 then x#=0
if z#>1000 then z#=1000
if z#<0 then z#=0

hope it helps

.........what's the point of reading this?
nuclear glory
21
Years of Service
User Offline
Joined: 2nd Oct 2003
Location:
Posted: 16th May 2004 02:09
And check out our collision plugin.

It's not an easy thing to mathematically program, however, using our plugin makes sliding collision a breeze

Lead Programmer/Director
Powerful Collision DLL for DBPro and DBC: http://www.nuclearglory.com
bibz1st
22
Years of Service
User Offline
Joined: 2nd Jan 2003
Location:
Posted: 16th May 2004 14:55
NG's DLL is highly recommended, although you need to have the DB enhancement installed before you can take advantage of it.
rob
Hop a long
21
Years of Service
User Offline
Joined: 12th May 2004
Location: The Code Dump
Posted: 16th May 2004 17:18
Greetings Manticore
Sounds like a truly worth while subject. Could you give some more details on where abouts you are in the problem. I'm no expert. I wouldn't want to bore you with what you already know. If it's a big problem could you break it down to a simple example. Step back from the game for a minute. Work as if you were building a sliding collision demo. I'll check back to see what you've got.
Manticore Night
21
Years of Service
User Offline
Joined: 23rd Oct 2003
Location: Ouinnipeg
Posted: 25th May 2004 02:40
I have absolutly NO idea what I'm supposed to be doing. Bore me, please.

It's amazing how much TV has raised us. (Bart Simpson)
Manticore Night
21
Years of Service
User Offline
Joined: 23rd Oct 2003
Location: Ouinnipeg
Posted: 26th May 2004 04:51
Ok more where abouts. I'm trying to be able to make my vehicle hit an like a rock or something built in one big object and navigate it like a car would.

It's amazing how much TV has raised us. (Bart Simpson)
Hop a long
21
Years of Service
User Offline
Joined: 12th May 2004
Location: The Code Dump
Posted: 27th May 2004 05:50 Edited at: 27th May 2004 05:51
Manticore Night
21
Years of Service
User Offline
Joined: 23rd Oct 2003
Location: Ouinnipeg
Posted: 27th May 2004 06:42
Thanks a million this post should be stickyed just beacause of that tutorial. I figured it out in about 1 minute. Great tutorial man.

It's amazing how much TV has raised us. (Bart Simpson)
Manticore Night
21
Years of Service
User Offline
Joined: 23rd Oct 2003
Location: Ouinnipeg
Posted: 27th May 2004 06:49 Edited at: 27th May 2004 07:05
acctually it doesn't work (got rid of my collision and left yours and now it doesn't work at all).

[edit] Opps I forgot the collision box, my bad, sorry.

It's amazing how much TV has raised us. (Bart Simpson)
Hop a long
21
Years of Service
User Offline
Joined: 12th May 2004
Location: The Code Dump
Posted: 28th May 2004 01:20
Thank you. I'm glad it was helpful. If you come up with any ideas or improvements of your own I hope you will share them in a post. Anyone wanting to try the demo as is need only copy and paste into Dark Basic.

Login to post a reply

Server time is: 2025-05-24 00:46:43
Your offset time is: 2025-05-24 00:46:43