void ClearIk( string name )

book_4_sparkGenerated
code_blocksInput

Description

The ClearIk method of the SkinnedModelRenderer class is used to disable an Inverse Kinematics (IK) parameter by setting ik.{name}.enabled to false. This is useful when you want to stop the IK system from affecting a specific bone or set of bones in your skinned model.

Usage

To use the ClearIk method, you need to provide the name of the IK parameter you wish to disable. This name corresponds to the IK setup in your animation graph or model configuration.

Example

// Example usage of ClearIk method
SkinnedModelRenderer renderer = new SkinnedModelRenderer();

// Disable the IK for the specified parameter
renderer.ClearIk("arm_ik");