NWH Vehicle Physics 2
Search Results for

    Show / Hide Table of Contents

    Struct SkidmarkRect

    Represents a single sample point in a skidmark trail, storing position, orientation, and appearance data.

    Namespace: NWH.VehiclePhysics2.Effects
    Assembly: NWH.VehiclePhysics2.dll
    Syntax
    [Serializable]
    public struct SkidmarkRect
    Remarks

    SkidmarkRect stores all data needed to build one cross-section of a skidmark mesh. Two consecutive SkidmarkRects are connected to form a quad (2 triangles). The generator interpolates between rect data to create smooth skidmark trails.

    Fields

    color

    Mark color from the surface preset, used for vertex color.

    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

    Right direction perpendicular to tire motion, defines mark width.

    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
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics