예제 #1
0
cpConstraint *
cpRatchetJointNew(cpBody *a, cpBody *b, cpFloat phase, cpFloat ratchet)
{
	return (cpConstraint *)cpRatchetJointInit(cpRatchetJointAlloc(), a, b, phase, ratchet);
}
예제 #2
0
파일: wrapper.c 프로젝트: Et999/Hipmunk
void wrRatchetJointInit(cpFloat phase, cpFloat ratchet,
                        cpRatchetJoint* joint, cpBody* a, cpBody* b) {
    cpRatchetJointInit(joint, a, b, phase, ratchet);
}