Struct VehicleWheelEvent
Stores events related to the vehicle wheels
Implements
Inherited Members
Namespace: Unity.Vehicles
Assembly: com.unity.vehicles.dll
Syntax
[InternalBufferCapacity(0)]
public struct VehicleWheelEvent : IBufferElementData
Fields
WheelAngularVelocity
The wheel angular velocity, at the moment of the event
Declaration
public float WheelAngularVelocity
Field Value
| Type | Description |
|---|---|
| float |
WheelEntity
The wheel entity affected by the event
Declaration
public Entity WheelEntity
Field Value
| Type | Description |
|---|---|
| Entity |
WheelSuspensionLocalTransform
The wheel suspension's local transform relative to the vehicle, at the moment of the event
Declaration
public RigidTransform WheelSuspensionLocalTransform
Field Value
| Type | Description |
|---|---|
| RigidTransform |
wheelEventType
The event type
Declaration
public VehicleWheelEvent.VehicleWheelEventType wheelEventType
Field Value
| Type | Description |
|---|---|
| VehicleWheelEvent.VehicleWheelEventType |