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

    Class RatGroomingBehavior

    Procedural animation behavior for rodents / rats. Implements an articulated 3-phase grooming state machine:

    1. Face & whiskers scrubbing (Lissajous circular paw motion at 18 Hz)
    2. Alert sniffing & inquisitive head scanning (26 Hz nose twitches)
    3. Ear scratching & head tilting Along with phase-shifted spline wave propagation for the tail.

    Hierarchy (View Summary)

    Index
    currentState: RatGroomingState = RatGroomingState.FACE_WASHING
    cycleDuration: number = 8.5
    elapsedTime: number = 0
    enableTailMotion: boolean = true
    isActive: boolean = true
    speed: number = 1.0
    target: CameraInterfaceData | Object3D | undefined = undefined

    The object this behavior is attached to. Set automatically.

    uuid: string = ...
    inspector: Record<string, InspectorField> = ...
    • Returns an independent copy of this behavior (own uuid, target cleared -- the caller is expected to attachBehavior() it onto the new host, which sets target correctly via onAttach()). Used by Object3D.clone() (Maker's Duplicate command).

      Returns Behavior