WheelInfo class

WheelInfo

Constructors

WheelInfo({Vec3? chassisConnectionPointLocal, Vec3? chassisConnectionPointWorld, Vec3? directionLocal, Vec3? directionWorld, Vec3? axleLocal, Vec3? 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})

Properties

axleLocal Vec3
getter/setter pair
axleWorld Vec3
getter/setter pair
brake double
getter/setter pair
chassisConnectionPointLocal Vec3
Connection point, defined locally in the chassis body frame.
getter/setter pair
chassisConnectionPointWorld Vec3
getter/setter pair
clippedInvContactDotSuspension double
getter/setter pair
customSlidingRotationalSpeed double
Speed to apply to the wheel rotation when the wheel is sliding.
getter/setter pair
dampingCompression double
getter/setter pair
dampingRelaxation double
getter/setter pair
deltaRotation double
getter/setter pair
directionLocal Vec3
getter/setter pair
directionWorld Vec3
getter/setter pair
engineForce double
getter/setter pair
forwardAcceleration double
getter/setter pair
forwardImpulse double
getter/setter pair
frictionSlip double
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isFrontWheel bool
getter/setter pair
isInContact bool
getter/setter pair
maxSuspensionForce double
getter/setter pair
maxSuspensionTravel double
Max travel distance of the suspension, in meters.
getter/setter pair
radius double
getter/setter pair
raycastResult WheelRaycastResult
The result from raycasting.
getter/setter pair
rollInfluence double
getter/setter pair
rotation double
Rotation value, in radians.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sideAcceleration double
getter/setter pair
sideImpulse double
getter/setter pair
skidInfo double
getter/setter pair
sliding bool
getter/setter pair
slipInfo double
getter/setter pair
steering double
getter/setter pair
suspensionForce double
getter/setter pair
suspensionLength double
getter/setter pair
suspensionMaxLength double
getter/setter pair
suspensionRelativeVelocity double
getter/setter pair
suspensionRestLength double
getter/setter pair
suspensionStiffness double
getter/setter pair
useCustomSlidingRotationalSpeed bool
If the customSlidingRotationalSpeed should be used.
getter/setter pair
worldTransform Transform
Wheel world transform.
getter/setter pair

Methods

copy() WheelInfo
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
updateWheel(Body chassis) → void

Operators

operator ==(Object other) bool
The equality operator.
inherited