Strata - v1.4.10
    Preparing search index...

    Interface DestructibleRef

    Ref interface for Destructible imperative control.

    interface DestructibleRef {
        damage: (amount: number) => void;
        destroy: () => void;
        getHealth: () => number;
        getRigidBody: () => RigidBody | null;
    }
    Index

    Properties

    damage: (amount: number) => void

    Apply damage to the object.

    destroy: () => void

    Instantly destroy the object.

    getHealth: () => number

    Get current health points.

    getRigidBody: () => RigidBody | null

    Get the underlying Rapier rigid body.