lovr.graphics.newAnimator

Creates a new Animator by reading animations from a Model.

animator = lovr.graphics.newAnimator(model)

Arguments

NameTypeDescription
modelModelThe model to read animations from.

Returns

NameTypeDescription
animatorAnimatorThe new Animator.

Notes

You can attach an animator to a Model with Model:setAnimator.

See also