Game Development Reference
In-Depth Information
Showing a skeleton
By default, there is nothing visually different when loading a standard mesh or an animated
mesh unless we render the skeleton. The sandbox provides an easy debug representation of
the skeleton with a
SetDisplaySkeleton
call:
Sandbox.lua
:
function Sandbox_Initialize(sandbox)
...
Animation.SetDisplaySkeleton(soldier, true);
The following screenshot shows you the soldier mesh with the debug skeleton information
drawn. By default, animated meshes will show up typically in a T-pose when no animations
are being applied to the skeleton.