Game Development Reference
In-Depth Information
Attaching meshes to bones
Attaching a mesh to a bone is exactly what it sounds like. Each time the animation updates
the skeleton, the attached mesh is repositioned to stay in sync with the bone it is attached
to. The sandbox provides an Animation.AttachToBone function that attaches a mesh
to a bone and allows for a position and rotation offset from the bone.
Tip
Once a mesh has been attached to the bone, you should discard the variable to the mesh, as
it is no longer valid. It is best to assign the variable to nil in order to avoid errors.
Search WWH ::




Custom Search