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