Preparing search index...

    Defines collision geometry and physics properties for an object.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    debugDrawEnabled: boolean

    Enable visual debugging of the collider shape.

    enabled: boolean

    Whether the component is active.

    filter: Filter

    Collision filtering rules for this collider.

    fitVisual: boolean

    Automatically match collider shape to visual bounds.

    forceCompound: boolean

    Force collision shape to use compound geometry.

    id: Uuid

    The unique id of the entity.

    intangible: boolean

    Disable collision response while maintaining overlap detection.

    matter: Matter

    Physics material properties for this collider.

    meta: Meta

    Metadata associated with this entity, providing access to its unique identifier and other descriptive properties.

    name: string

    Name of the component.

    overlapFilter: Filter

    Filtering rules for overlap queries on this collider.

    rotateSmoothFactor: number

    Damping factor for rotational motion.

    sceneObject: SceneObject

    Scene object this component is attached to.

    Collision shape definition.

    smooth: boolean

    Enable motion smoothing between physics updates.

    translateSmoothFactor: number

    Damping factor for translational motion.

    type: string

    The entity's type.

    worldSettings: WorldSettingsAsset

    Physics simulation settings for this collider's world.

    Methods

    • Returns the name of this object's type.

      Returns string

    • Returns true if the object is of the specified type.

      Parameters

      • type: string

      Returns boolean