Small World Engine API Reference - v0.46.1
    Preparing search index...

    Class LookAtBehavior

    Constantly rotates the object to face a target position or another object. Perfect for surveillance cameras, NPC tracking, or simple 2D billboards.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    isActive: boolean = true
    target: CameraInterfaceData | Object3D | undefined = undefined

    The object this behavior is attached to. Set automatically.

    targetPoint: Vector3D | Object3D
    uuid: string = ...
    inspector?: Record<string, InspectorField>

    Methods