cpConstraint *
cpDampedRotarySpringNew(cpBody *a, cpBody *b, cpFloat restAngle, cpFloat stiffness, cpFloat damping)
{
	return (cpConstraint *)cpDampedRotarySpringInit(cpDampedRotarySpringAlloc(), a, b, restAngle, stiffness, damping);
}
Exemple #2
0
void wrDampedRotarySpringInit(cpFloat restAngle, cpFloat stiffness, cpFloat damping,
                              cpDampedRotarySpring *joint, cpBody *a, cpBody *b) {
    cpDampedRotarySpringInit(joint, a, b, restAngle, stiffness, damping);
}