internal override void ApplyState(JointState state) { base.ApplyState(state); if (state is not FrictionJointState frictionState) { return; } MaxForce = frictionState.MaxForce; MaxTorque = frictionState.MaxTorque; }
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; }