Navigation
API > API/Runtime > API/Runtime/Constraints
References
| Module | Constraints |
| Header | /Engine/Source/Runtime/Experimental/Animation/Constraints/Public/TransformConstraint.h |
| Include | #include "TransformConstraint.h" |
Syntax
struct FTransformConstraintUtils
Remarks
TransformConstraintUtils
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | AddConstraint
(
UWorld* InWorld, |
Registers a new transform constraint within the constraints manager. | |
| bool | BuildDependencies
(
UWorld* InWorld, |
Ensure default dependencies between constraints. | |
| FTransform | ComputeRelativeTransform
(
const FTransform& InChildLocal, |
Computes the relative transform between both transform based on the constraint's InType. | |
| UTickableTransformConstraint * | CreateAndAddFromObjects
(
UWorld* InWorld, |
Creates respective handles and creates a new InType transform constraint. | |
| UTickableTransformConstraint * | CreateFromType
(
UWorld* InWorld, |
Creates a new transform constraint based on the InType. | |
| UTransformableComponentHandle * | CreateHandleForSceneComponent
(
USceneComponent* InSceneComponent, |
Create a handle for the scene component. | |
| void | GetChildrenConstraints
(
UWorld* World, |
Fills a constraint array that InConstraint->ChildHandle is the parent of. | |
| TOptional< FTransform > | GetConstraintsRelativeTransform
(
const TArray< TWeakObjectPtr< UTickableConstraint > >& InConstraints, |
||
| int32 | GetLastActiveConstraintIndex
(
const TArray< TWeakObjectPtr< UTickableConstraint > >& InConstraints |
Get the last active constraint that has dynamic offset. | |
| void | GetParentConstraints
(
UWorld* World, |
Fills a sorted constraint array that InChild actor is the child of. | |
| TOptional< FTransform > | GetRelativeTransform
(
UWorld* InWorld, |
Computes the current constraint space local transform. | |
| void | UpdateTransformBasedOnConstraint
(
FTransform& CurrentTransform, |
Adjust the transform on a scene component so it's effected by the constraint |