Class WheeledVehicle.WheelState
Vehicle wheel dynamic simulation state container.
Inheritance
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
[Unmanaged]
public sealed class WheelState : ValueType
Fields
IsInAir
True if suspension travel limits forbid the wheel from touching the drivable surface.
Declaration
public bool IsInAir
Field Value
System.Boolean
|
RotationAngle
The rotation angle (in degrees) about the rolling axis for the specified wheel.
Declaration
public float RotationAngle
Field Value
System.Single
|
SteerAngle
The steer angle (in degrees) of the wheel about the "up" vector accounting for input steer and toe and, if applicable, Ackermann steer correction.
Declaration
public float SteerAngle
Field Value
System.Single
|
SuspensionOffset
The compression of the suspension spring. Offsets the wheel location.
Declaration
public float SuspensionOffset
Field Value
System.Single
|
SuspensionTraceEnd
The start location of the suspension raycast end (Editor only for debugging).
Declaration
public Vector3 SuspensionTraceEnd
Field Value
Vector3
|
SuspensionTraceStart
The start location of the suspension raycast start (Editor only for debugging).
Declaration
public Vector3 SuspensionTraceStart
Field Value
Vector3
|
TireContactCollider
The wheel is not in the air then it's set to the collider of the driving surface under the corresponding vehicle wheel.
Declaration
public PhysicsColliderActor TireContactCollider
Field Value
PhysicsColliderActor
|
TireContactNormal
The wheel is not in the air then it's set to the normal on the drivable surface hit by the tire.
Declaration
public Vector3 TireContactNormal
Field Value
Vector3
|
TireContactPoint
The wheel is not in the air then it's set to the point on the drivable surface hit by the tire.
Declaration
public Vector3 TireContactPoint
Field Value
Vector3
|
TireFriction
The friction experienced by the tire for the combination of tire type and surface type after accounting.
Declaration
public float TireFriction
Field Value
System.Single
|
Properties
Default
The default WheeledVehicle.WheelState.
Declaration
public static WheeledVehicle.WheelState Default { get; }
Property Value
WheeledVehicle.WheelState
|