Navigation
API > API/Plugins > API/Plugins/RigVM > API/Plugins/RigVM/RigVMFunctions > API/Plugins/RigVM/RigVMFunctions/Math
Inheritance Hierarchy
- FRigVMStruct
- FRigVMFunction_MathBase
- FRigVMFunction_MathVectorBase
- FRigVMFunction_MathVectorClampSpatially
References
| Module | RigVM |
| Header | /Engine/Plugins/Runtime/RigVM/Source/RigVM/Public/RigVMFunctions/Math/RigVMFunction_MathVector.h |
| Include | #include "RigVMFunctions/Math/RigVMFunction_MathVector.h" |
Syntax
USTRUCT (
Meta=(DisplayName="Clamp Spatially", TemplateName="ClampSpatially", Keywords="Collide,Collision"))
struct FRigVMFunction_MathVectorClampSpatially : public FRigVMFunction_MathVectorBase
Remarks
Clamps a position using a plane collision, cylindric collision or spherical collision. The collision happens both towards an inner envelope (minimum) and towards an outer envelope (maximum). You can disable the inner / outer envelope / collision by setting the minimum / maximum to 0.0.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TEnumAsByte< EAxis::Type > | Axis | ||
| bool | bDrawDebug | ||
| FLinearColor | DebugColor | ||
| float | DebugThickness | ||
| float | Maximum | This maximum allowed distance. | |
| float | Minimum | The minimum allowed distance at which a collision occurs. | |
| FVector | Result | ||
| FTransform | Space | The space this spatial clamp happens within. The input position will be projected into this space. | |
| TEnumAsByte< ERigVMClampSpatialMode::Type > | Type | ||
| FVector | Value |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
RIGVM_METHOD () |