Preparing search index...

    Class Collision

    A state generated for ColliderComponent collision events.

    Lens Scripting Version 164

    Hierarchy (View Summary)

    Index

    Properties

    Primitive shapes that physics objects interact with, such as spheres, boxes, and meshes, or compound shapes formed from multiple shapes. Used with Physics, Hair Simulation and Cloth Simulation.

    Lens Scripting Version 164

    contactCount: number

    The number of contact points in the collision.

    Lens Scripting Version 164

    contacts: Contact[]

    Array of contacts in the collision.

    Lens Scripting Version 164

    id: number

    ID of the collision, unique for this collider.

    Lens Scripting Version 164

    Methods

    • Returns true if the object matches or derives from the passed in type.

      Parameters

      • type: string

      Returns boolean

    • Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

      Parameters

      Returns boolean