Set up PlayCanvas animation with AI
Diagnose a character that stays frozen even as playback time advances, and check that its clips bind to joints on the rendered model.
Set up PlayCanvas animation with AI when a character appears in the scene but stands rigid during a walk cycle. The configure-animation skill starts with the clip names and joint paths recorded in the GLB. That gives the agent a way to distinguish a missing clip, an animation attached to the wrong node and a skeleton whose paths do not match.
An idle-to-walk blend brings a separate failure mode. If its input travels beyond the supported range, the character can freeze even though the animation state is active. The skill calls for a visual or runtime check across several frames at idle and at both ends of the blend.
What it does
- Check the actual clip name before trying to play a single animation.
- Locate the animation component relative to the rendered skeleton.
- Limit a blend input to the range covered by its child motions.
- Compare target paths before applying a clip from one model to another.
- Track two joints away from the root to confirm that the visible pose changes.
Install and use
- Supply the GLB, a PlayCanvas project, a model inspection tool and access to a running preview.
- Ask, “The character freezes when it reaches running speed. Check the blend inputs and show whether two joints still move at the top of the range.”
- Test the corrected setup at rest and at both blend limits using the same model.
FAQ
Source
Made by PlayCanvas. Original skill: configure-animation, published on GitHub under the MIT licence.
View on GitHub