docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct CollisionEvent.Details

    Extra details about a collision.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Physics
    Assembly: Unity.Physics.dll
    Syntax
    public struct CollisionEvent.Details

    Fields

    EstimatedContactPointPositions

    Estimated contact point positions (in world space). Use this information about individual contact point positions to apply custom logic, for example looking at the Length to differentiate between vertex (1 point), edge (2 point) or face (3 or more points) collision.

    Declaration
    public NativeArray<float3> EstimatedContactPointPositions
    Field Value
    Type Description
    NativeArray<float3>

    EstimatedImpulse

    Estimated total impulse applied.

    Declaration
    public float EstimatedImpulse
    Field Value
    Type Description
    float

    Properties

    AverageContactPointPosition

    Calculate the average contact point position.

    Declaration
    public float3 AverageContactPointPosition { get; }
    Property Value
    Type Description
    float3

    The average contact point position.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)