Add safeness
Posted: Fri Aug 28, 2009 8:50 am
Hi there
I'm using your (fabulous) library in a small project on the iPhone (no cocos-2d powered). The code is very well written and I really enjoy the results you can achieve. So thanks for the good job.
I suggest to add some degree of safeness on the next releases. A good start, in my opinion, is to add some protection against SEGFAULT. For example in function cpBodySetMass:
in order to avoid the simplest errors.
Anyway keep up the good job.
P.S. I can help if you want. I am an experienced C programmer.
I'm using your (fabulous) library in a small project on the iPhone (no cocos-2d powered). The code is very well written and I really enjoy the results you can achieve. So thanks for the good job.
I suggest to add some degree of safeness on the next releases. A good start, in my opinion, is to add some protection against SEGFAULT. For example in function cpBodySetMass:
Code: Select all
void
cpBodySetMass(cpBody *body, cpFloat mass)
{
// a simple check
if(!body) return;
body->m = mass;
body->m_inv = 1.0f/mass;
}
Anyway keep up the good job.
P.S. I can help if you want. I am an experienced C programmer.