Collision angle?

7 views
Skip to first unread message

Joe

unread,
Apr 4, 2010, 10:47:47 AM4/4/10
to APE General
Hi,
I'm using the latest APE with the public Collision Listeners and and
trying to find out the most efficient manner to figure the collision
angle of a non-fixed particle with a list of collide-ables. For
example usage...

In Super Mario World, Mario can only "jump" when his particle has
collision from an angle of around 45-135 degrees. So in order to allow
a jump, Mario's collision listener must register a Boolean stating
weather he can use his jump function or not.

My initial method for this was determining weather the colliding
particle was below Mario just by using its position and width/height.
This is not a solution at all as it cannot be usable in rotated
particles, abstract groups, etc.

Any idea how to get this list of collision angles before I pop the APE
hood?

Thanks!
-Joe

Reply all
Reply to author
Forward
0 new messages