static mrb_value ratchet_joint_get_ratchet(mrb_state *mrb, mrb_value self) { cpConstraint *constraint; cpFloat ratchet; Data_Get_Struct(mrb, self, &mrb_cp_constraint_type, constraint); ratchet = cpRatchetJointGetRatchet(constraint); return mrb_float_value(mrb, (mrb_float)ratchet); }
float PhysicsJointRatchet::getRatchet() const { return PhysicsHelper::cpfloat2float(cpRatchetJointGetRatchet(_cpConstraints.front())); }