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 / Cast a box with Sparky's Collision?

Author
Message
_Pauli_
AGK Developer
15
Years of Service
User Offline
Joined: 13th Aug 2009
Location: Germany
Posted: 21st Jan 2010 00:32
Is it possible to cast a box for collision detection using Sparky's Collision?

There are these commands:
SC_SphereCast and SC_SphereCastGroup
I need something similar but with a box instead of a sphere!

Now the plot thickens, the fps decreases, and the awesomeness goes through the roof.
_Pauli_
AGK Developer
15
Years of Service
User Offline
Joined: 13th Aug 2009
Location: Germany
Posted: 21st Jan 2010 01:26 Edited at: 21st Jan 2010 02:17
Here is some code I wrote. The idea behind it is to move the object a certain step distance in a loop and check the collision (intersection) instead of using ray/sphere casts.



Unfortunatly it doesn't work as I expected it to. There is a collision happening and the object stops moving, but it stops in a location where it is still intersecting with the scene (GROUP_STATIC) like it would with ray casting from the objects center.

Any ideas?

Now the plot thickens, the fps decreases, and the awesomeness goes through the roof.

Login to post a reply

Server time is: 2024-11-20 05:25:08
Your offset time is: 2024-11-20 05:25:08