Re: Enhancing collision callbacks.
Posted: Mon Nov 23, 2009 1:47 pm
ok, got you.
That's great. I have really some use for the collide callback.
Thomas
That's great. I have really some use for the collide callback.
Thomas
Support forum for the Chipmunk Physics engine
http://chipmunk-physics.net/forum/
Yup, I thought of that too. Originally I wasn't going to make a separate callback for begin and preSolve, but decided it would be nicer with two instead of always putting in an if-else.dieterweb wrote:Can I get the info if a collision is the first (i.e. the one which invoked the collide callback) directly in the postSolve callback? Or do I have to flag those somehow myself in the collide callback?
Thomas
Code: Select all
cpArbiterIsFirstContact(cpArbiter *arb)