Constructors
Methods
Static
emphasize
- emphasize(targets, duration, motionType?, moveDistance?, style?): ActionModel
Parameters
- targets: Target
- duration: number
- motionType: EmphasizeActionMotionType = "bounce"
- moveDistance: number = 1
- style: "basic" = "basic"
Static
fadeAction
- fadeAction(targetObject, duration, show): ActionModel
Parameters
- targetObject: Target
- duration: number
- show: boolean
Static
impulseAction
- impulseAction(targets, velocity): ActionModel
Parameters
- targets: Target
- velocity: Vec3
Static
lookAtCameraAction
- lookAtCameraAction(targets, duration?, front?, up?): ActionModel
Parameters
- targets: Target
Optional
duration: numberOptional
front: Vec3Optional
up: Vec3
Static
parallel
- parallel(...params): GroupActionModel
Parameters
Rest
...params: IBehaviorElement[]
Static
playAudioAction
- playAudioAction(targets, audio, type?, gain?, auralMode?): ActionModel
Parameters
- targets: Target
- audio: string
- type: PlayAction = "play"
- gain: number = 1
- auralMode: AuralMode = "spatial"
Static
sequence
- sequence(...params): GroupActionModel
Parameters
Rest
...params: IBehaviorElement[]
Static
startAnimationAction
- startAnimationAction(targetObject, start, duration?, animationSpeed?, reversed?, pingPong?): IBehaviorElement
Parameters
- targetObject: Target
- start: number
- duration: number = 0
- animationSpeed: number = 1
- reversed: boolean = false
- pingPong: boolean = false
Returns IBehaviorElement
Static
transformAction
- transformAction(targets, transformTarget, duration, transformType, easeType?): ActionModel
Parameters
- targets: Target
- transformTarget: Target
- duration: number
- transformType: Space
- easeType: EaseType = "inout"
creates an action that plays an animation