onAnimateNode

fun Node.onAnimateNode(animationProperty: AnimationProperty = AnimationProperty.POSITION, initialValue: Float3 = DEFAULT_CAMERA_CONFIG_FLOAT3_ZERO, finalValue: Float3 = DEFAULT_CAMERA_CONFIG_FLOAT3_ZERO, animationDuration: Long = DEFAULT_CAMERA_CONFIG_ANIMATION_DURATION)

Animate a node in the 3D scene with the given properties and values

Parameters

animationProperty

the property to animate (position, scale, rotation) (default is "position") takes a String

initialValue

the initial value of the property (default is Float3(0f, 0f, 0f)) takes a Float3

finalValue

the final value of the property (default is Float3(0f, 0f, 0f)) takes a Float3

animationDuration

the duration of the animation (default is 600L) takes a Long