internal WheelJoint(WheelJointDef def) : base(def) { _localAnchorA = def.LocalAnchorA; _localAnchorB = def.LocalAnchorB; _localXAxisA = def.LocalAxisA; _localYAxisA = MathUtils.Cross(1.0f, _localXAxisA); _mass = 0.0f; _impulse = 0.0f; _motorMass = 0.0f; _motorImpulse = 0.0f; _springMass = 0.0f; _springImpulse = 0.0f; _maxMotorTorque = def.MaxMotorTorque; _motorSpeed = def.MotorSpeed; _enableMotor = def.EnableMotor; _frequencyHz = def.FrequencyHz; _dampingRatio = def.DampingRatio; _bias = 0.0f; _gamma = 0.0f; _ax.SetZero(); _ay.SetZero(); }
internal WheelJoint(WheelJointDef def) : base(def) { _localAnchorA = def.LocalAnchorA; _localAnchorB = def.LocalAnchorB; _localXAxisA = def.LocalAxisA; _localYAxisA = MathUtils.Cross(1.0f, _localXAxisA); _mass = 0.0f; _impulse = 0.0f; _motorMass = 0.0f; _motorImpulse = 0.0f; _springMass = 0.0f; _springImpulse = 0.0f; _axialMass = 0.0f; _lowerImpulse = 0.0f; _upperImpulse = 0.0f; _lowerTranslation = def.LowerTranslation; _upperTranslation = def.UpperTranslation; _enableLimit = def.EnableLimit; _maxMotorTorque = def.MaxMotorTorque; _motorSpeed = def.MotorSpeed; _enableMotor = def.EnableMotor; _bias = 0.0f; _gamma = 0.0f; _ax.SetZero(); _ay.SetZero(); _stiffness = def.Stiffness; _damping = def.Damping; }