WheelInfo constructor
WheelInfo({
- Vector3? chassisConnectionPointLocal,
- Vector3? chassisConnectionPointWorld,
- Vector3? directionLocal,
- Vector3? directionWorld,
- Vector3? axleLocal,
- Vector3? axleWorld,
- double suspensionRestLength = 1,
- double suspensionMaxLength = 2,
- double radius = 1,
- double suspensionStiffness = 100,
- double dampingCompression = 10,
- double dampingRelaxation = 10,
- double frictionSlip = 10.5,
- double forwardAcceleration = 1,
- double sideAcceleration = 1,
- double steering = 0,
- double rotation = 0,
- double deltaRotation = 0,
- double rollInfluence = 0.01,
- double maxSuspensionForce = double.infinity,
- bool isFrontWheel = true,
- double clippedInvContactDotSuspension = 1,
- double suspensionRelativeVelocity = 0,
- double suspensionForce = 0,
- double slipInfo = 0,
- double skidInfo = 0,
- double suspensionLength = 0,
- double maxSuspensionTravel = 1,
- bool useCustomSlidingRotationalSpeed = false,
- double customSlidingRotationalSpeed = -0.1,
Implementation
WheelInfo({
Vector3? chassisConnectionPointLocal,
Vector3? chassisConnectionPointWorld,
Vector3? directionLocal,
Vector3? directionWorld,
Vector3? axleLocal,
Vector3? axleWorld,
this.suspensionRestLength = 1,
this.suspensionMaxLength = 2,
this.radius = 1,
this.suspensionStiffness = 100,
this.dampingCompression = 10,
this.dampingRelaxation = 10,
this.frictionSlip = 10.5,
this.forwardAcceleration = 1,
this.sideAcceleration = 1,
this.steering = 0,
this.rotation = 0,
this.deltaRotation = 0,
this.rollInfluence = 0.01,
this.maxSuspensionForce = double.infinity,
this.isFrontWheel = true,
this.clippedInvContactDotSuspension = 1,
this.suspensionRelativeVelocity = 0,
this.suspensionForce = 0,
this.slipInfo = 0,
this.skidInfo = 0,
this.suspensionLength = 0,
this.maxSuspensionTravel = 1,
this.useCustomSlidingRotationalSpeed = false,
this.customSlidingRotationalSpeed = -0.1
}){
this.chassisConnectionPointLocal = chassisConnectionPointLocal?.clone() ?? Vector3.zero();
this.chassisConnectionPointWorld = chassisConnectionPointWorld?.clone() ?? Vector3.zero();
this.directionLocal = directionLocal?.clone() ?? Vector3.zero();
this.directionWorld = directionWorld?.clone() ?? Vector3.zero();
this.axleLocal = axleLocal?.clone() ?? Vector3.zero();
this.axleWorld = axleWorld?.clone() ?? Vector3.zero();
}