The same entity as in Lens Scripting.

interface BodyComponent {
    angularDamping: number;
    bodySetting: BodySetting;
    bodySettingValue: number;
    damping: number;
    debugDrawEnabled: boolean;
    dynamic: boolean;
    enabled: boolean;
    filter: Editor.Assets.Physics.Filter;
    fitVisual: boolean;
    forceCompound: boolean;
    id: Uuid;
    intangible: boolean;
    matter: Editor.Assets.Physics.Matter;
    name: string;
    overlapFilter: Editor.Assets.Physics.Filter;
    rotateSmoothFactor: number;
    sceneObject: Editor.Model.SceneObject;
    shape: Editor.Components.Physics.Shape;
    smooth: boolean;
    translateSmoothFactor: number;
    type: string;
    worldSettings: Editor.Assets.Physics.WorldSettingsAsset;
    getDirectlyReferencedEntities(): Entity[];
    getOwnedEntities(): Entity[];
    getTypeName(): string;
    isOfType(type: string): boolean;
    isSame(other: ScriptObject): boolean;
    remapReferences(referenceMapping: object): void;
}

Hierarchy (view full)

Properties

angularDamping: number
bodySetting: BodySetting
bodySettingValue: number
damping: number
debugDrawEnabled: boolean
dynamic: boolean
enabled: boolean
fitVisual: boolean
forceCompound: boolean
id: Uuid

The unique id of the entity.

intangible: boolean
name: string
overlapFilter: Editor.Assets.Physics.Filter
rotateSmoothFactor: number
sceneObject: Editor.Model.SceneObject
smooth: boolean
translateSmoothFactor: number
type: string

The entity's type.

Methods

  • Beta

    Swap this entity for another one based on a JSON of the current entity id and the target entity id.

    Parameters

    • referenceMapping: object

    Returns void