static mrb_value ratchet_joint_set_ratchet(mrb_state *mrb, mrb_value self) { cpConstraint *constraint; mrb_float ratchet; mrb_get_args(mrb, "f", &ratchet); Data_Get_Struct(mrb, self, &mrb_cp_constraint_type, constraint); cpRatchetJointSetRatchet(constraint, (cpFloat)ratchet); return mrb_nil_value(); }
void PhysicsJointRatchet::setRatchet(float ratchet) { cpRatchetJointSetRatchet(_cpConstraints.front(), PhysicsHelper::float2cpfloat(ratchet)); }