Animated node

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Alpiro
Posts: 7
Joined: Thu Mar 27, 2025 10:37 pm

Animated node

Post by Alpiro »

Hello, I have a small question.

If I have an animated node, and another node which is his child. If the parent is setVisible(false), it seems that the animation of the child (which is invisible too) stops. Is it a normal behaviour ?
CuteAlien
Admin
Posts: 10021
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Animated node

Post by CuteAlien »

It's deliberate at least. Comes from OnAnimate in ISceneNode header which has an IsVisible check (and calls OnAnimate for children only if it succeeds). If you want to enforce the animation you can call OnAnimate for that child node manually (and it only checks it's own IsVisible flag then).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply