Struct SkidmarkRect
One cross-section of a skidmark mesh: position, orientation and appearance at a sample point.
Namespace: NWH.VehiclePhysics2.Effects
Assembly: NWH.VehiclePhysics2.dll
Syntax
[Serializable]
public struct SkidmarkRect
Remarks
Two consecutive rects are connected into a quad (2 triangles); the generator interpolates between them.
Fields
color
Vertex color for the mark. The generator writes white with alpha from intensity; per-surface look comes from the preset's skidmarkMaterial.
Declaration
public Color color
Field Value
| Type | Description |
|---|---|
| Color |
forwardDirection
Forward direction of tire motion at this sample point.
Declaration
public Vector3 forwardDirection
Field Value
| Type | Description |
|---|---|
| Vector3 |
intensity
Mark intensity (0-1) based on slip magnitude, used for vertex alpha.
Declaration
public float intensity
Field Value
| Type | Description |
|---|---|
| float |
normal
Surface normal at this sample point, used for mesh normals.
Declaration
public Vector3 normal
Field Value
| Type | Description |
|---|---|
| Vector3 |
position
World space position at the center of the tire contact patch.
Declaration
public Vector3 position
Field Value
| Type | Description |
|---|---|
| Vector3 |
rightDirection
Cross(forwardDirection, normal), so it points toward the wheel's left in world space. Only its axis and half-wheel-width length are used, to offset the two edge vertices.
Declaration
public Vector3 rightDirection
Field Value
| Type | Description |
|---|---|
| Vector3 |
surfaceMapIndex
Surface map index to detect surface type changes.
Declaration
public int surfaceMapIndex
Field Value
| Type | Description |
|---|---|
| int |