I've finally found info on getting the contactListener working, which successfully lets me know when an object is on a flat surface.
But when I drop the object up a sloped surface- like a triangle, it never registers!
Shouldn't the contactListener... listen for all contacts?
If not, how can you tell if an object is colliding with a sloped surface in the +y direction?
just:
override public function BeginContact(contact:b2Contact):void
{
trace("Pow!!");
}
-only works for an object landing on a flat surface! Otherwise I get no output...
But when I drop the object up a sloped surface- like a triangle, it never registers!
Shouldn't the contactListener... listen for all contacts?
If not, how can you tell if an object is colliding with a sloped surface in the +y direction?
just:
override public function BeginContact(contact:b2Contact):void
{
trace("Pow!!");
}
-only works for an object landing on a flat surface! Otherwise I get no output...