docs.unity3d.com
    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.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.Physics
    Syntax
    public struct 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
    Single

    Properties

    AverageContactPointPosition

    Calculate the average contact point position.

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

    The average contact point position.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023