Show / Hide Table of Contents

    Struct CollisionEvent

    A Collision event is fired when two colliders collide. The event contains information about the colliders involved in the collision.

    Namespace: Motphys.Rigidbody
    Assembly: solution.dll
    Syntax
    public struct CollisionEvent

    Fields

    collider1

    Declaration
    public BaseCollider collider1
    Field Value
    Type Description
    BaseCollider

    The first collider involved in the collision.

    collider2

    Declaration
    public BaseCollider collider2
    Field Value
    Type Description
    BaseCollider

    The second collider involved in the collision.

    Properties

    contactCount

    Declaration
    public int contactCount { get; }
    Property Value
    Type Description
    System.Int32

    The contact number

    Back to top Copyright © 2020-2024 北京谋先飞技术有限公司及其关联公司北京谋先飞科技有限公司
    Generated by DocFX