chipmunk pro 7.0 questions
Posted: Sun Jan 04, 2015 11:22 am
There are a ton of API changes. I understand the docs are not ready yet. Some of them are obvious (x.pos became x.position) but chipmunkExtras.h has been neutered in this release (presumably absorbed?) and a lot of support APIs I cannot find such as
[body resetForces]
[body isRogue]
Also just to check I assume body.affineTransform from chipmunkExtras became just body.transform.
reset forces used to zero out force and torque. Im not sure if this fully replicates that API but is this ok:
body.force = cpvzero;
body.torque=0.0;
isRogue was used to see if a body was in a space or not. I used it to sanity-check some stuff. Can we just test the space attribute for nil?
body.space
Then there is [space addBounds] which signature has changed quite a bit. Why not use CGRect anymore? At least provide a convenience routine.
[body resetForces]
[body isRogue]
Also just to check I assume body.affineTransform from chipmunkExtras became just body.transform.
reset forces used to zero out force and torque. Im not sure if this fully replicates that API but is this ok:
body.force = cpvzero;
body.torque=0.0;
isRogue was used to see if a body was in a space or not. I used it to sanity-check some stuff. Can we just test the space attribute for nil?
body.space
Then there is [space addBounds] which signature has changed quite a bit. Why not use CGRect anymore? At least provide a convenience routine.