Replacement for old functions?
Posted: Tue May 10, 2016 2:16 am
Hello, again me porting some old pieces of code to Chipmunk 7.
I have some functions that are no more present in v7, and I can't find in the doc a way to replace them (I still found that "Vel" or "Pos" were replaced by "Velocity" and "Position").
- cpShapeSetLayers(body-pointer, NOT_GRABABLE_MASK); → I can't remember why this was in my code but this function don't exists anymore
- body limits : cpBodySetVelLimit(…) and cpBodySetAngVelLimit(…) → I found useful to limit that values to reasonable stuff (i.e. in a "ball" game). I guess I can get/modify these values according to the limits I decided during process but maybe a better way exists
Thanks!
Regards,
--
Hexasoft
I have some functions that are no more present in v7, and I can't find in the doc a way to replace them (I still found that "Vel" or "Pos" were replaced by "Velocity" and "Position").
- cpShapeSetLayers(body-pointer, NOT_GRABABLE_MASK); → I can't remember why this was in my code but this function don't exists anymore
- body limits : cpBodySetVelLimit(…) and cpBodySetAngVelLimit(…) → I found useful to limit that values to reasonable stuff (i.e. in a "ball" game). I guess I can get/modify these values according to the limits I decided during process but maybe a better way exists
Thanks!
Regards,
--
Hexasoft