1. Home
  2. Docs
  3. Getting Started
  4. Running Animation Of The Skeleton

Running Animation Of The Skeleton

Some 3D models comes with a set of bones animation or animation of the skeleton. You need to read at each specific model’s documentation and see which skeleton animations are available for you to use.
The below sample code performs a Backflip animation on the Ninja model:


1
2
3
4
Ninja is a model
n is a Ninja

n.Backflip

You can chain several skeleton animations in the same command for example:


1
2
3
4
Ninja is a model
n is a Ninja

n.SideKick then Idle1 then Idle2 then Idle3 then Attack1 then Attack2 then Attack3 then Spin then Walk then Walk then Walk

You can also control the skeleton animation speed:


1
2
3
4
Ninja is a model
n is a Ninja

n.Backflip at speed of 0.3

“speed of 0.3” means about 3 times slower than the default original speed which is 1. So speed of 2 will be two times faster, speed of 4 will be four times faster and speed of 0.5 will be two times slower

Was this article helpful to you? Yes No

How can we help?