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.

Newcomers DBPro Corner / sliding collision help

Author
Message
HKlown
21
Years of Service
User Offline
Joined: 18th Jan 2003
Location: United States
Posted: 18th Jan 2003 23:07
can someone explain how sliding collision works? It's no fun to just copy it from somone's snippit database.

thanks
haggisman
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 18th Jan 2003 23:10
its simple, find out if a collision occurs, if so then find the intersection point between the two objects, once you have that information you have to calculate the sliding vector and maybe take into account friction then move the object and thats it, but you may have to check for futher collisions if the sliding plane goes through a different object.

Specs:- 1GHZ athlon, Radeon8500, 192mb ram, winxp
John H
Retired Moderator
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 19th Jan 2003 00:19
I doubt he understood that

RPGamer

Current - RPG: Eternal Destiny : Help Wanted!
http://www.halbrosproductions.netfirms.com
Dont ask those questions! Read the help files lazy!
QuothTheRaven
21
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: United States
Posted: 19th Jan 2003 03:51
jesus tapdancing christ on a bicycle haggis, stop spewing that scottish rant!

How it works? You hit something. You slide. If it's code your after, the tutorials and examples section of help will really be of use.

Basically you make collision boxes for all the objects you want to detect collision for

and then detect the collision between object # and all other objects (in this case object is 1)

in the main loop.
haggisman
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 19th Jan 2003 11:58
QuothTheRaven:-
If it's code your after, the tutorials and examples section of help will really be of use.

HKlown:-
It's no fun to just copy it from somone's snippit database.

Im guessing he wants an in depth explanation, not just some code.

Maybe if i included more stuff like "cross-product" and "normalize the vector" he might be able to understand it better.

Specs:- 1GHZ athlon, Radeon8500, 192mb ram, winxp
indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 20th Jan 2003 12:20
jesus tapdancing christ on a bicycle haggis

what song is he singing and jesus wears sandles.

sorry

HKlown
21
Years of Service
User Offline
Joined: 18th Jan 2003
Location: United States
Posted: 21st Jan 2003 02:36
I tried to figure out the sliding collision thing, and it worked okay, but when the sphere hit the cube, it got choppy and bounced back. Well, here's what I did:



It's probally horrible, but that's self-doubt for ya.

"The model you're looking for is out there..."
-The .X Files

Login to post a reply

Server time is: 2024-05-19 11:24:53
Your offset time is: 2024-05-19 11:24:53