Description
The ClearPhysicsBones
method is a member of the SkinnedModelRenderer
class in the Sandbox framework. This method is used to clear any physics-related data associated with the bones of a skinned model. It effectively resets the physics state of the bones, which can be useful when you need to reinitialize or update the physics simulation for the model's bones.
Usage
To use the ClearPhysicsBones
method, you need to have an instance of the SkinnedModelRenderer
class. Once you have the instance, you can call this method to clear the physics data of the bones.
This method does not take any parameters and does not return any value. It is a public instance method, so it can be accessed directly from an instance of SkinnedModelRenderer
.
Example
// Assuming 'renderer' is an instance of SkinnedModelRenderer
renderer.ClearPhysicsBones();
// This will clear the physics data associated with the bones of the skinned model.