Navigation
Unreal Engine C++ API Reference > Runtime > Chaos > Chaos
Inheritance Hierarchy
- FPBDConstraintContainer
- FPBDIndexedConstraintContainer
- TPBDIndexedConstraintContainer
- FPBDRigidSpringConstraints
References
Module | Chaos |
Header | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/PBDRigidSpringConstraints.h |
Include | #include "Chaos/PBDRigidSpringConstraints.h" |
Syntax
class FPBDRigidSpringConstraints : public Chaos::TPBDIndexedConstraintContainer< FPBDRigidSpringConstraints >
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | AddBodies
(
const TArrayView< int32 >& ConstraintIndices, |
TIndexedConstraintContainerSolver API - used by World solvers |
![]() |
void | AddBodies
(
FSolverBodyContainer& SolverBodyContainer |
TSimpleConstraintContainerSolver API - used by RBAN solvers |
![]() |
FConstraintContainerHandle * | AddConstraint
(
const FConstrainedParticlePair& InConstrainedParticles, |
Add a constraint initialized from current world-space particle positions. |
![]() |
void | ApplyPositionConstraints
(
const TArrayView< int32 >& ConstraintIndices, |
|
![]() |
void | ApplyPositionConstraints
(
const FReal Dt, |
|
![]() |
void | ApplyProjectionConstraints
(
const TArrayView< int32 >& ConstraintIndices, |
|
![]() |
void | ApplyProjectionConstraints
(
const FReal Dt, |
|
![]() |
void | ApplyVelocityConstraints
(
const FReal Dt, |
|
![]() |
void | ApplyVelocityConstraints
(
const TArrayView< int32 >& ConstraintIndices, |
|
![]() |
void | DisableConstraints
(
const TSet< TGeometryParticleHandle< FReal, 3 >* >& RemovedParticles |
Disabled the specified constraint. |
![]() |
void | GatherInput
(
const TArrayView< int32 >& ConstraintIndices, |
|
![]() |
void | GatherInput
(
const FReal Dt |
|
![]() ![]() |
const FHandles & | ||
![]() ![]() |
const FConstrainedParticlePair & | GetConstrainedParticles
(
int32 ConstraintIndex |
Get the particles that are affected by the specified constraint. |
![]() |
FConstraintContainerHandle * | GetConstraintHandle
(
int32 ConstraintIndex |
|
![]() ![]() |
const FConstraintContainerHandle * | GetConstraintHandle
(
int32 ConstraintIndex |
|
![]() |
FHandles & | Constraint API | |
![]() ![]() |
const TVector< FVec3, 2 > & | GetConstraintPositions
(
int ConstraintIndex |
Get the local-space constraint positions for each body. |
![]() ![]() |
FReal | GetRestLength
(
int32 ConstraintIndex |
Get the rest length of the spring |
![]() ![]() |
int32 | Constraint Container API Get the number of constraints. | |
![]() |
void | RemoveConstraint
(
int ConstraintIndex |
Remove the specified constraint. |
![]() |
void | ScatterOutput
(
const TArrayView< int32 >& ConstraintIndices, |
|
![]() |
void | ScatterOutput
(
const FReal Dt |
|
![]() |
void | SetConstraintPositions
(
int ConstraintIndex, |
Set the local-space constraint positions for each body. |
![]() |
void | SetRestLength
(
int32 ConstraintIndex, |
Set the rest length of the spring |
Overridden from FPBDConstraintContainer
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | AddConstraintsToGraph
(
Private::FPBDIslandManager& IslandManager |
Add all the constraints in the container to the graph |
![]() ![]() ![]() |
int32 | FConstraintContainer Implementation | |
![]() ![]() |
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 |