示例#1
0
    protected override void UpdateConstraint()
    {
        base.UpdateConstraint();

        CP._cpRatchetJointSetAngle(_handle, _angle * Mathf.Deg2Rad);
        CP._cpRatchetJointSetPhase(_handle, _phase * Mathf.Deg2Rad);
        CP._cpRatchetJointSetRatchet(_handle, _ratchet * Mathf.Deg2Rad);
    }