Description
The ProceduralBone
field is a member of the GameObjectFlags
enumeration in the Sandbox API. This flag is used to indicate that a bone should not be overridden by animations. Instead, the bone will maintain its local position, allowing for procedural adjustments or modifications to take precedence over animation data.
Usage
Use the ProceduralBone
flag when you want to ensure that a bone's local transformations are preserved and not overridden by animations. This is particularly useful in scenarios where procedural animations or physics-based adjustments are applied to bones, and you want these to take precedence over any animation data.
Example
// Example of using GameObjectFlags.ProceduralBone
GameObject myGameObject = new GameObject();
myGameObject.Flags |= GameObjectFlags.ProceduralBone;
// This ensures that any procedural modifications to the bone's position
// are not overridden by animations.