Archive 19/01/2023.

Can you scale a bone?

GodMan

So I have this, but it does not work. I see under bone you can get the initial scale.

handBoneNodeAI = zombie1->GetChild("r hand", true);
handBoneNodeAI->SetScale(Vector3(0.05f,0.05f,0.05f));

This won’t work though.

Dave82

You can’t transform bones in a scene update process because it will be overridden in the skinning update.
Subscribe to the post render update and scale your bone there.

GodMan

Okay that sounds to be the issue. Thanks

GodMan

My mistake I had issue with my event.

Thanks for the help