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.

Dark GDK / On Collision...

Author
Message
prasoc
16
Years of Service
User Offline
Joined: 8th Oct 2008
Location:
Posted: 25th Nov 2008 23:00
If I cast a ray downward and get the first collision point, could that be used for floors like slopes, and stairs?
Carlos
20
Years of Service
User Offline
Joined: 26th Mar 2004
Location:
Posted: 26th Nov 2008 01:57
Yes, you could get the distance between the starting point and the first collision point. Then you could update the Y position of your character.
prasoc
16
Years of Service
User Offline
Joined: 8th Oct 2008
Location:
Posted: 26th Nov 2008 08:15
ok thanks
prasoc
16
Years of Service
User Offline
Joined: 8th Oct 2008
Location:
Posted: 26th Nov 2008 19:14


Why doesn't this work? Is there any reason? Collides always = 0 ???
Venge
18
Years of Service
User Offline
Joined: 13th Sep 2006
Location: Iowa
Posted: 26th Nov 2008 21:47
Make sure you've called SC_SetupObject() on the object you want to check collision with.

I have CDO. It's like OCD, but the letters are in alphabetical order, like they should be.
prasoc
16
Years of Service
User Offline
Joined: 8th Oct 2008
Location:
Posted: 26th Nov 2008 22:42
It turns out the object was set up for box collision. I set it to poly collision and it WORKS WOOOOOOOOOOOOOOOOOOOT!! It took me ages to get it to work!! Thanks for helping me look in the right place!
Hayer
19
Years of Service
User Offline
Joined: 4th Nov 2005
Location: Norway
Posted: 27th Nov 2008 20:02
How big is the object and the performance?

prasoc
16
Years of Service
User Offline
Joined: 8th Oct 2008
Location:
Posted: 27th Nov 2008 20:09
The performance hit is like 1-2fps when you look at the whole level and it is a quite small level

Login to post a reply

Server time is: 2024-11-25 07:26:34
Your offset time is: 2024-11-25 07:26:34