Class UUxtMathUtilsFunctionLibrary
Library of utility functions for UX Tools.
Inheritance
System::Object
UBlueprintFunctionLibrary
UUxtMathUtilsFunctionLibrary
Inherited Members
UUxtMathUtilsFunctionLibrary
Namespace:
Assembly: .dll
Syntax
public: class UUxtMathUtilsFunctionLibrary
Methods
|
Improve this Doc
View Source
Calculates the composite bounding box and bounding sphere around a component and its children. The optional filter component can be used to ignore specific scene components.
Declaration
public: static FBoxSphereBounds CalculateHierarchyBounds(USceneComponent *Component, const FTransform &LocalToTarget, HierarchyBoundsFilter Filter=nullptr)
Parameters
Type |
Name |
Description |
USceneComponent * |
Component |
|
const FTransform & |
LocalToTarget |
|
_u_uxt_math_utils_function_library.HierarchyBoundsFilter |
Filter |
|
Returns
Type |
Description |
FBoxSphereBounds |
|
|
Improve this Doc
View Source
CalculateHierarchyBounds(USceneComponent *Component, HierarchyBoundsFilter Filter=nullptr)
Calculates the composite bounding box and bounding sphere around a component and its children, the output is in the space of the component. The optional filter component can be used to ignore specific scene components.
Declaration
public: static FBoxSphereBounds CalculateHierarchyBounds(USceneComponent *Component, HierarchyBoundsFilter Filter=nullptr)
Parameters
Type |
Name |
Description |
USceneComponent * |
Component |
|
_u_uxt_math_utils_function_library.HierarchyBoundsFilter |
Filter |
|
Returns
Type |
Description |
FBoxSphereBounds |
|
|
Improve this Doc
View Source
Calculates the actor bounds for a given space transform
Declaration
public: static FBox CalculateNestedActorBoundsInGivenSpace(const AActor *Actor, const FTransform &WorldToCalcSpace, bool bNonColliding, UPrimitiveComponent *Ignore=nullptr)
Parameters
Type |
Name |
Description |
const AActor * |
Actor |
|
const FTransform & |
WorldToCalcSpace |
|
bool |
bNonColliding |
|
UPrimitiveComponent * |
Ignore |
|
Returns
|
Improve this Doc
View Source
CalculateNestedActorBoundsInLocalSpace(const AActor *Actor, bool bNonColliding, UPrimitiveComponent *Ignore=nullptr)
Calculates the actor bounds in local space
Declaration
public: static FBox CalculateNestedActorBoundsInLocalSpace(const AActor *Actor, bool bNonColliding, UPrimitiveComponent *Ignore=nullptr)
Parameters
Type |
Name |
Description |
const AActor * |
Actor |
|
bool |
bNonColliding |
|
UPrimitiveComponent * |
Ignore |
|
Returns
|
Improve this Doc
View Source
GetRotationBetweenVectors(const FVector &Vector1, const FVector &Vector2)
Compute minimal rotation between vectors.
Declaration
public: static FRotator GetRotationBetweenVectors(const FVector &Vector1, const FVector &Vector2)
Parameters
Type |
Name |
Description |
const FVector & |
Vector1 |
|
const FVector & |
Vector2 |
|
Returns
Type |
Description |
FRotator |
|
|
Improve this Doc
View Source
Apply rotation about a pivot point to the transform.
Declaration
public: static FTransform RotateAboutPivotPoint(const FTransform &Transform, const FRotator &Rotation, const FVector &Pivot)
Parameters
Type |
Name |
Description |
const FTransform & |
Transform |
|
const FRotator & |
Rotation |
|
const FVector & |
Pivot |
|
Returns
Type |
Description |
FTransform |
|
|
Improve this Doc
View Source
SwingTwistDecompose(const FRotator &Rotation, const FVector &TwistAxis, FRotator &Swing, FRotator &Twist)
Decompose a rotation into swing and twist components. The twist component describes a rotation around the given twist axis, while the swing contains the remaining rotation.
Declaration
public: static void SwingTwistDecompose(const FRotator &Rotation, const FVector &TwistAxis, FRotator &Swing, FRotator &Twist)
Parameters
Type |
Name |
Description |
const FRotator & |
Rotation |
|
const FVector & |
TwistAxis |
|
FRotator & |
Swing |
|
FRotator & |
Twist |
|