Skip navigation
Currently Being Moderated

Physics Engine: How to handle object collisions / best practices?

Mar 3, 2012 2:57 PM

Tags: #stage3d #proscenium #physics #pellet

Right now I'm trying to find out by examining all methods and comparing to other engines like box2D how to get information about colliding objects.


I thought I could use i.E. the "checkCollideWith" method of the btRigidBody instance, but it always returns true.

Then, there are several interesting methods in the collisionDispatcher class, but also they don't yield any satisfying results.

I could set a "nearCallbackFunction", but then, the collision wasn't handeled internally anymore.


Has anyone found out how to get reliable information about colliding objects?


Also the Pellet-Engine looks really "ported from C++", not like a typical AS3 project. I could imagine that Adobe would refactor the whole thing at a given time to make it fit more into their AS3 environment. Then, there would also be "real" events for things like that.


More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points