Navigation
API > API/Plugins > API/Plugins/ControlRigPhysics > API/Plugins/ControlRigPhysics/FRigPhysicsBodyComponent
Description
Removes any existing collision, and replaces it with a shape calculated from the joint positions (if possible). The shape will be a single box when there are enough joints, but when there are only a few joints it may be a sphere or capsule, depending on what is most appropriate.
| Name | AutoCalculateCollision |
| Type | function |
| Header File | /Engine/Plugins/Experimental/ControlRigPhysics/Source/ControlRigPhysics/Public/RigPhysicsBodyComponent.h |
| Include Path | #include "RigPhysicsBodyComponent.h" |
| Source | /Engine/Plugins/Experimental/ControlRigPhysics/Source/ControlRigPhysics/Private/RigPhysicsBodyComponent.cpp |
void AutoCalculateCollision
(
URigHierarchy * Hierarchy,
float MinAspectRatio,
float MinSize
)
Parameters
| Name | Remarks |
|---|---|
| Hierarchy | The hierarchy - the joint positions will be used to calculate the shape. |
| MinAspectRatio | The minimum box extent, as a proportion of the maximum box extent. |
| MinSize | The minimum size (in each dimension) of the created shape. |