NWH Vehicle Physics 2
Search Results for

    Show / Hide Table of Contents

    Class DamageHandler.VehicleCollision

    Contains data on the collision that has last happened.

    Inheritance
    object
    DamageHandler.VehicleCollision
    Namespace: NWH.VehiclePhysics2.Damage
    Assembly: NWH.VehiclePhysics2.dll
    Syntax
    public class DamageHandler.VehicleCollision

    Fields

    collision

    Collision data for the collision event. Only valid during the collision frame; deferred deformation uses the snapshot fields below.

    Declaration
    public Collision collision
    Field Value
    Type Description
    Collision

    contactCount

    Number of captured contact points.

    Declaration
    public int contactCount
    Field Value
    Type Description
    int

    contacts

    Contact points captured during the collision callback for deferred deformation.

    Declaration
    public List<ContactPoint> contacts
    Field Value
    Type Description
    List<ContactPoint>

    decelerationMagnitude

    Magnitude of the deceleration vector at the moment of impact.

    Declaration
    [Tooltip("Magnitude of the deceleration vector at the moment of impact.")]
    public float decelerationMagnitude
    Field Value
    Type Description
    float

    deformationQueue

    Queue of mesh filter components that are waiting for deformation. Some of the meshes might be queued for checking even if not deformed.

    Declaration
    [Tooltip("Queue of mesh filter components that are waiting for deformation.\r\nSome of the meshes might be queued for checking even if not deformed.")]
    public Queue<MeshFilter> deformationQueue
    Field Value
    Type Description
    Queue<MeshFilter>

    relativeVelocity

    Relative velocity captured at the moment of impact.

    Declaration
    public Vector3 relativeVelocity
    Field Value
    Type Description
    Vector3
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics