Skip to main content

Animations

Functions

translate(entity, ecd, parameter, time, transitionFunction)Tween
fade(entity, ecd, parameter, time, transitionFunction)Tween

translate(entity, ecd, parameter, time, transitionFunction) ⇒ Tween

Kind: global function

ParamTypeDescription
entitynumber
ecdEntityComponentDataset
parameterVector3destination in local offset from current position
timenumberduration
transitionFunctionfunction

fade(entity, ecd, parameter, time, transitionFunction) ⇒ Tween

Kind: global function

ParamTypeDescription
entitynumber
ecdEntityComponentDataset
parameterVector3final opacity, 1 - fully opaque, 0 - fully transparent
timenumberduration
transitionFunctionfunction

fade~model3d : Mesh

Kind: inner constant of fade