Navigation
Unreal Engine C++ API Reference > Runtime > Chaos > Chaos
Inheritance Hierarchy
- FPBDConstraintContainer
- FPBDJointConstraints
References
Module | Chaos |
Header | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/PBDJointConstraints.h |
Include | #include "Chaos/PBDJointConstraints.h" |
Syntax
class FPBDJointConstraints : public Chaos::FPBDConstraintContainer
Remarks
A set of joint restricting up to 6 degrees of freedom, with linear and angular limits.
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
FConstraintContainerHandle * | AddConstraint
(
const FParticlePair& InConstrainedParticles, |
Add a constraint with particle-space constraint offsets. |
![]() |
FConstraintContainerHandle * | AddConstraint
(
const FParticlePair& InConstrainedParticles, |
Add a constraint with particle-space constraint offsets. |
![]() |
FConstraintContainerHandle * | AddConstraint
(
const FParticlePair& InConstrainedParticles, |
Add a constraint with particle-space constraint offsets. |
![]() |
void | BreakConstraint
(
int32 ConstraintIndex |
Force a constraints to break |
![]() |
void | Remove the previously assigned break callback. | |
![]() |
void | ClearConstraintBreaking
(
int32 ConstraintIndex |
Clear the transient constraint braking state (called by event system when it has used the flag) |
![]() |
void | ClearDriveTargetChanged
(
int32 ConstraintIndex |
Clear the drive target state |
![]() |
void | FixConstraint
(
int32 ConstraintIndex |
Repair a broken constraints (does not adjust particle positions) |
![]() ![]() |
const FHandles & | All of the constraints in the container, including inactive | |
![]() ![]() |
const FParticlePair & | GetConstrainedParticles
(
int32 ConstraintIndex |
Get the particles that are affected by the specified constraint. |
![]() ![]() |
FVec3 | GetConstraintAngularImpulse
(
int32 ConstraintIndex |
The total linear angular applied by the constraint |
![]() ![]() |
int32 | GetConstraintColor
(
int32 ConstraintIndex |
|
![]() ![]() |
const FConstraintContainerHandle * | GetConstraintHandle
(
int32 ConstraintIndex |
Get a joint constraint by index |
![]() |
FConstraintContainerHandle * | GetConstraintHandle
(
int32 ConstraintIndex |
Get a joint constraint by index |
![]() |
FHandles & | All of the constraints in the container, including inactive | |
![]() ![]() |
int32 | GetConstraintIsland
(
int32 ConstraintIndex |
|
![]() ![]() |
int32 | GetConstraintLevel
(
int32 ConstraintIndex |
|
![]() ![]() |
FVec3 | GetConstraintLinearImpulse
(
int32 ConstraintIndex |
The total linear impulse applied by the constraint |
![]() ![]() |
EResimType | GetConstraintResimType
(
int32 ConstraintIndex |
|
![]() ![]() |
const FPBDJointSettings & | GetConstraintSettings
(
int32 ConstraintIndex |
Get the settings for a joint constraint by index |
![]() ![]() |
ESyncState | GetConstraintSyncState
(
int32 ConstraintIndex |
|
![]() ![]() |
const FPBDJointSolverSettings & | GetSettings () |
Get the solver settings (used by FPBDJointContainerSolver) |
![]() ![]() |
bool | IsConstraintBreaking
(
int32 ConstraintIndex |
Whether the constraint was broken this frame (transient flag for use by event system) |
![]() ![]() |
bool | IsConstraintBroken
(
int32 ConstraintIndex |
Whether the constraint is broken |
![]() ![]() |
bool | IsConstraintEnabled
(
int32 ConstraintIndex |
Whether the constraint is enabled |
![]() ![]() |
bool | IsDriveTargetChanged
(
int32 ConstraintIndex |
Whether the drive target has changed |
![]() ![]() |
int32 | Get the number of constraints. | |
![]() |
void | RemoveConstraint
(
int ConstraintIndex |
Remove the specified constraint. |
![]() |
void | RemoveConstraints
(
const TSet< TGeometryParticleHandle< FReal, 3 >* >& RemovedParticles |
|
![]() |
void | SetAngularDrivePositionTarget
(
int32 ConstraintIndex, |
Set the angular drive target for a constraint by index |
![]() |
void | SetBreakCallback
(
const FJointBreakCallback& Callback |
Set the break callback. |
![]() |
void | SetConstraintEnabled
(
int32 ConstraintIndex, |
Enable or disable a constraints |
![]() |
void | SetConstraintEnabledDuringResim
(
int32 ConstraintIndex, |
|
![]() |
void | SetConstraintSettings
(
int32 ConstraintIndex, |
Set the settings for a joint constraint by index |
![]() |
void | SetConstraintSyncState
(
int32 ConstraintIndex, |
|
![]() |
void | SetDriveTargetChanged
(
int32 ConstraintIndex, |
Set Drive Target Changed State |
![]() |
void | SetLinearDrivePositionTarget
(
int32 ConstraintIndex, |
Set the linear drive target for a constraint by index |
![]() |
void | SetSettings
(
const FPBDJointSolverSettings& InSettings |
Modify the solver settings |
![]() |
void | SetSolverResults
(
const int32 ConstraintIndex, |
Called by the joint solver at the end of the constraint solver phase. |
![]() |
void | SetSortEnabled
(
const bool bInEnable |
Whether to sort the joints internally. |
![]() |
void | SetUseLinearJointSolver
(
const bool bInEnable |
Whether to use a linear or non-linear joint solver. |
Overridden from FPBDConstraintContainer
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | AddConstraintsToGraph
(
Private::FPBDIslandManager& IslandManager |
Add all the constraints in the container to the graph |
![]() ![]() |
TUniquePtr< FConstraintContainerSolver > | CreateGroupSolver
(
const int32 Priority |
Create a constraint solver for an Evolution with Graph support (World evolution). |
![]() ![]() |
TUniquePtr< FConstraintContainerSolver > | CreateSceneSolver
(
const int32 Priority |
FConstraintContainer Implementation |
![]() ![]() |
void | DisconnectConstraints
(
const TSet< TGeometryParticleHandle< FReal, 3 >* >& RemovedParticles |
Disconnect the constraints from the attached input particles. |
![]() ![]() ![]() |
int32 | Get the number of constraints in this container (includes inactive and disabled) | |
![]() ![]() |
void | PrepareTick () |
Called oncer per tick to initialize buffers required for the rest of the tick |
![]() ![]() |
void | Empty the constraints (must be removed from the graph first, if required) | |
![]() ![]() |
void | Should undo any allocations in PrepareTick |
Typedefs
Name | Description |
---|---|
Base | |
FConstraintContainerHandle | |
FConstraintHandleAllocator | |
FHandles | |
FTransformPair |
Deprecated Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | AddBodies
(
FSolverBodyContainer& SolverBodyContainer |
Joint Solver API moved to FPBDJointContainerSolver |
![]() |
void | AddBodies
(
const TArrayView< int32 >& ConstraintIndices, |
Joint Solver API moved to FPBDJointContainerSolver |
![]() |
void | ApplyPositionConstraints
(
const TArrayView< int32 >& ConstraintIndices, |
Joint Solver API moved to FPBDJointContainerSolver |
![]() |
void | ApplyPositionConstraints
(
const FReal Dt, |
Joint Solver API moved to FPBDJointContainerSolver |
![]() |
void | ApplyProjectionConstraints
(
const TArrayView< int32 >& ConstraintIndices, |
Joint Solver API moved to FPBDJointContainerSolver |
![]() |
void | ApplyProjectionConstraints
(
const FReal Dt, |
Joint Solver API moved to FPBDJointContainerSolver |
![]() |
void | ApplyVelocityConstraints
(
const FReal Dt, |
Joint Solver API moved to FPBDJointContainerSolver |
![]() |
void | ApplyVelocityConstraints
(
const TArrayView< int32 >& ConstraintIndices, |
Joint Solver API moved to FPBDJointContainerSolver |
![]() |
void | GatherInput
(
const FReal Dt |
Joint Solver API moved to FPBDJointContainerSolver |
![]() |
void | GatherInput
(
const TArrayView< int32 >& ConstraintIndices, |
Joint Solver API moved to FPBDJointContainerSolver |
![]() |
void | GatherInput
(
const int32 ConstraintIndex, |
Joint Solver API moved to FPBDJointContainerSolver |
![]() |
void | ScatterOutput
(
const TArrayView< int32 >& ConstraintIndices, |
Joint Solver API moved to FPBDJointContainerSolver |
![]() |
void | ScatterOutput
(
const FReal Dt |
Joint Solver API moved to FPBDJointContainerSolver |
![]() |
void | ScatterOutput
(
const int32 ConstraintIndex, |
Joint Solver API moved to FPBDJointContainerSolver |