How we can get valid AnimControl in return, without attaching it?

In the Hello Animation tutorial, how this code can be valid?



[java]control = player.getControl(AnimControl.class);[/java]



No control AnimControl was attached with player node. How can we still get a valid control in return?

Because the AssetManager does it when you load a model that has animations. In this case Oto.

1 Like

ah, that’s what i guessed. Not mentioned in the doc. Thanks.