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 / collision

Author
Message
ddg
22
Years of Service
User Offline
Joined: 1st Jun 2004
Location:
Posted: 7th Jun 2005 02:57 Edited at: 8th Jun 2005 02:43
this is some collision code i came up with the intersect object command.Its simple but it works amazingly,i have not managed to beat atall and its totaly smooth.theres also a good fps.
heres the code but i cant upload the model so have to use your own model,soz.any model should work.
plz tell me if you mange to beat the collision thanx
here it is

DDG



-------DDG-------
RUCCUS
21
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 8th Jun 2005 21:51
I too have been working on an intersect object collision command, I hope you don;t think I'm copying you when I release it. I don't even know if it will be as good as yours. So far it's good but sliding collision is a little bumpy so we'll see.

Did my post about using intersect object influence you to do this?

ddg
22
Years of Service
User Offline
Joined: 1st Jun 2004
Location:
Posted: 9th Jun 2005 01:16
i have seen your post but it didnt influnce me to do this.Before i could start making a large 3d game i needed to write a collision function because before i was writing if x# > 100 then x# =100
which takes too long.have u tried it?

-------DDG-------
RUCCUS
21
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 9th Jun 2005 01:48
Oh ok. Either way kudos on doing it I tried it out and it works great. In the end yours will probably be better than mine, I have the theory down and I've gotten the collision working but I think when its all done yours will be less lagy than mine since Im using more than one intersection ray. One for each face.

Just a question have you tested it for .x against .x (I.E: A .x player model moving in the .x world)?

Oh, about the x#=100 no I haven't tried that.

ddg
22
Years of Service
User Offline
Joined: 1st Jun 2004
Location:
Posted: 9th Jun 2005 05:45
ruccus i havent tried it with a .x object i should do that soon.i may have too changes some values but it should work.And good luck with your colision.

-------DDG-------
RUCCUS
21
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 9th Jun 2005 05:52
Cheers

dj blackdragon3710
21
Years of Service
User Offline
Joined: 5th Nov 2004
Location: In LaLa land
Posted: 9th Jun 2005 08:30 Edited at: 9th Jun 2005 08:31
Huh, seems I get stuck at an invisible point in my test...see piccy. No matter what I do, can't get past that barrier.

<<<<<Used to be "djblackdragon" with being registered in January, 2003, no matter what it says on the left<<<<<
ddg
22
Years of Service
User Offline
Joined: 1st Jun 2004
Location:
Posted: 10th Jun 2005 05:06 Edited at: 10th Jun 2005 05:06
umm... can u acctually move atall looks like ure stuck in the floor to me try change the values to increase the camera height

-------DDG-------
dj blackdragon3710
21
Years of Service
User Offline
Joined: 5th Nov 2004
Location: In LaLa land
Posted: 11th Jun 2005 02:01
not stuck in the floor unless the code made me sink somehow....ok, i'll try.

<<<<<Used to be "djblackdragon" with being registered in January, 2003, no matter what it says on the left<<<<<

Login to post a reply

Server time is: 2026-07-03 05:01:15
Your offset time is: 2026-07-03 05:01:15