Add rayCast operation support
authorDaker Fernandes Pinheiro <daker.pinheiro@openbossa.org>
Mon, 18 Apr 2011 23:07:20 +0000 (20:07 -0300)
committerDaker Fernandes Pinheiro <daker.pinheiro@openbossa.org>
Tue, 19 Apr 2011 00:32:35 +0000 (21:32 -0300)
commitcc6633463bc882cee9a09b8b38c0cfdb5ae63d5a
tree47cd731c20e88f228f287dd7a8709c6de47901f8
parentba4f2422be8b03818eb498c8979431850bc60786
Add rayCast operation support

- The API could directly recieve a javascript function instead of creating a callback object.
  To create such API, many hacks are needed.
- The current solution uses a wrapper as a callback to the rayCast function.
- It only supports the simplest (but most common) rayCast use cases.
box2d.pro
box2dplugin.cpp
box2draycastcallback.cpp [new file with mode: 0644]
box2draycastcallback.h [new file with mode: 0644]
box2dworld.cpp
box2dworld.h