Struct CollisionEvent | Unity Physics | 0.5.1-preview.2
docs.unity3d.com
    Show / Hide Table of Contents

    Struct CollisionEvent

    Namespace: Unity.Physics
    Syntax
    public struct CollisionEvent

    Properties

    BodyIndexA

    Declaration
    public int BodyIndexA { get; }
    Property Value
    Type Description
    Int32

    BodyIndexB

    Declaration
    public int BodyIndexB { get; }
    Property Value
    Type Description
    Int32

    ColliderKeyA

    Declaration
    public ColliderKey ColliderKeyA { get; }
    Property Value
    Type Description
    ColliderKey

    ColliderKeyB

    Declaration
    public ColliderKey ColliderKeyB { get; }
    Property Value
    Type Description
    ColliderKey

    EntityA

    Declaration
    public Entity EntityA { get; }
    Property Value
    Type Description
    Entity

    EntityB

    Declaration
    public Entity EntityB { get; }
    Property Value
    Type Description
    Entity

    Normal

    Declaration
    public float3 Normal { get; }
    Property Value
    Type Description
    Unity.Mathematics.float3

    Methods

    CalculateDetails(ref PhysicsWorld)

    Declaration
    public CollisionEvent.Details CalculateDetails(ref PhysicsWorld physicsWorld)
    Parameters
    Type Name Description
    PhysicsWorld physicsWorld
    Returns
    Type Description
    CollisionEvent.Details
    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