Struct CollisionEvent | Unity Physics | 0.4.1-preview
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

    BodyIndices

    Declaration
    [Obsolete("BodyIndices has been deprecated. Use BodyIndexA and BodyIndexB directly. (RemovedAfter 2020-08-01)")]
    public BodyIndexPair BodyIndices { get; }
    Property Value
    Type Description
    BodyIndexPair

    ColliderKeyA

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

    ColliderKeyB

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

    ColliderKeys

    Declaration
    [Obsolete("ColliderKeys has been deprecated. Use ColliderKeyA and ColliderKeyB directly. (RemovedAfter 2020-08-01)")]
    public ColliderKeyPair ColliderKeys { get; }
    Property Value
    Type Description
    ColliderKeyPair

    Entities

    Declaration
    [Obsolete("Entities has been deprecated. Use EntityA and EntityB directly. (RemovedAfter 2020-08-01)")]
    public EntityPair Entities { get; }
    Property Value
    Type Description
    EntityPair

    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