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 / I'll take the Collision deal with a side order of Sliding... and a large ramp to go.

Author
Message
RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 22nd Mar 2005 11:12
Alright, I've scowered everywhere for a simple, FREE, sliding collision procedure.
- NGC sounds awesome but I really cant spend any money at the moment, I don't have any for starters and my parents wont invest in it right now.
- Sparky's Collision DLL is cool, I downloaded it but it isn't meant for sliding collision...Unless Aura finished that project that he was doing with it to make sliding collision.
- Joepy Dopy (Or whatever the Engine was called, I forget sry)'s Engine is cool but doesn't provide support for .x model collision, yet atleast. I'd attempt to get it to work but I'm too much of a noob to do that at the moment.
- Any other collision systems I've found are for DBC only.

I even made my own sliding collision system, which works fairly well with normal db models, but when I attempt to use .x models it works with some parts of the models and other parts it screws up. It can go around corners, and it has speed differentials (I.E if your looking almost right at the object you're running into, you'll slide slower than you would if you were to look say on a 45 degree angle.

For anyone that wants to check out what I've done so far with MY collision code, here it is below. Its fairly long, most likely sloppy, and so far I only have forwards movement calculated. (I.E if you were to move backwards into an object you'd go through it) But I can easily add that in later. Just don't feel like it right now especially since it isnt the greatest collision, and vibrates quite a lot.

NOTE: The smaller the amount you increase the user's X and Z, the less vibration there will be, but then the user will move slower. It's currently at 0.5 units.

NEW NOTE: I don't know how this happened but something got screwed with the code and some of the angle collisions are messing up, oh well w.e I'm not telling people to use this code, just putting it up incase people somehow find it useful.


Anyways, I cant figure out any way to get sliding collision to work. I recal seeing one forum post with someone saying "this is the 3rd and last time Ill post this...." with a link regarding sliding collision but I exited and forgot which it was and coudnlt find it again.

I know it's a lot of writing and it's asking a lot, but could someone please give me a hand with some sliding collision? Preferably working with .x to .x models. I dont need all of the code but possible a word explanation of what I need to do, and some tutorials out there that I havent found.

Thanks in advance.

Causin' RUCCUS whereva' I go.
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 22nd Mar 2005 11:19
Have you looked in the code snippets forum? These are the first 2 there. I think there are others as well.

http://forum.thegamecreators.com/?m=forum_view&t=10315&b=6

http://forum.thegamecreators.com/?m=forum_view&t=45212&b=6

RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 22nd Mar 2005 11:42
I cant believe I forgot about those, I looked at them but brushed it off when I wasnt looking for collision detection. Sorry I should have checked them out before I posted. I remember I looked at kensupens and being the noob that I am I didnt know that in order to view the source you had to extract the files, so every time I dled the zip Id click the db source file and a blank page would appear since I didnt extract them. Sorry lost in thought.

Ill take a look at those tomorow, gotta get some sleep.

Thanks again.

Causin' RUCCUS whereva' I go.
Baggers
20
Years of Service
User Offline
Joined: 31st May 2004
Location: Yonder over dem dere hills
Posted: 23rd Mar 2005 00:15
For sliding collision with sparky's collision, when a collision with a wall i detected move the character away in the direction of the normals of the wall he hit.

Login to post a reply

Server time is: 2024-11-13 19:59:46
Your offset time is: 2024-11-13 19:59:46