Constructors

Methods

  • Parameters

    • targets: Target
    • duration: number
    • motionType: EmphasizeActionMotionType = "bounce"
    • moveDistance: number = 1
    • style: "basic" = "basic"

    Returns ActionModel

  • Parameters

    • targetObject: Target
    • duration: number
    • show: boolean

    Returns ActionModel

  • Parameters

    • targets: Target
    • Optionalduration: number
    • Optionalfront: Vec3
    • Optionalup: Vec3

    Returns ActionModel

  • Parameters

    • targets: Target
    • audio: string
    • type: PlayAction = "play"
    • gain: number = 1
    • auralMode: AuralMode = "spatial"

    Returns ActionModel

  • creates an action that plays an animation

    Parameters

    • targetObject: Target
    • start: number

      offset in seconds!

    • duration: number = 0

      in seconds! 0 means play to end

    • animationSpeed: number = 1
    • reversed: boolean = false
    • pingPong: boolean = false

    Returns IBehaviorElement

  • Parameters

    • targets: Target
    • transformTarget: Target
    • duration: number
    • transformType: Space
    • easeType: EaseType = "inout"

    Returns ActionModel