コード例 #1
0
        internal override void ApplyState(JointState state)
        {
            base.ApplyState(state);
            if (state is not FrictionJointState frictionState)
            {
                return;
            }

            MaxForce  = frictionState.MaxForce;
            MaxTorque = frictionState.MaxTorque;
        }
コード例 #2
0
        internal override void ApplyState(JointState state)
        {
            base.ApplyState(state);
            if (state is not RevoluteJointState revoluteState)
            {
                return;
            }

            EnableLimit    = revoluteState.EnableLimit;
            EnableMotor    = revoluteState.EnableMotor;
            LowerAngle     = revoluteState.LowerAngle;
            MotorSpeed     = revoluteState.MotorSpeed;
            ReferenceAngle = revoluteState.ReferenceAngle;
            UpperAngle     = revoluteState.UpperAngle;
            MaxMotorTorque = revoluteState.MaxMotorTorque;
        }