Class reference
LimitAngularVelocityModifier3D
Inherits SkeletonModifier3D
Limit bone rotation angular velocity.
Description
This modifier limits bone rotation angular velocity by comparing poses between previous and current frame. You can add bone chains by specifying their root and end bones, then add the bones between them to a list. Modifier processes either that list or the bones excluding those in the list depending on the option exclude.
Properties
int chain_count = 0
int chain_count = 0The number of chains.
bool exclude = false
bool exclude = falseIf true, the modifier processes bones not included in the bone list. If false, the bones processed by the modifier are equal to the bone list.
int joint_count = 0
int joint_count = 0The number of joints in the list which created by chains dynamically.
float max_angular_velocity = 6.2831855
float max_angular_velocity = 6.2831855The maximum angular velocity per second.
Methods
void clear_chains()
Clear all chains.
int get_end_bone(int index) const
int get_end_bone(int index) constReturns the end bone index of the bone chain.
String get_end_bone_name(int index) const
String get_end_bone_name(int index) constReturns the end bone name of the bone chain.
int get_root_bone(int index) const
int get_root_bone(int index) constReturns the root bone index of the bone chain.
String get_root_bone_name(int index) const
String get_root_bone_name(int index) constReturns the root bone name of the bone chain.
void reset()
Sets the reference pose for angle comparison to the current pose with the influence of constraints removed. This function is automatically triggered when joints change or upon activation.
void set_end_bone(int index, int bone)
int index, int bone)Sets the end bone index of the bone chain.
void set_end_bone_name(int index, String bone_name)
int index, String bone_name)Sets the end bone name of the bone chain. Note: End bone must be the root bone or a child of the root bone.
void set_root_bone(int index, int bone)
int index, int bone)Sets the root bone index of the bone chain.
void set_root_bone_name(int index, String bone_name)
int index, String bone_name)Sets the root bone name of the bone chain.