TPBDRigidDynamicSpringConstraints

Windows
MacOS
Linux

Inheritance Hierarchy

FPBDConstraintContainer

TPBDRigidDynamicSpringConstraints

References

Module

Chaos

Header

/Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/PBDRigidDynamicSpringConstraints.h

Include

#include "Chaos/PBDRigidDynamicSpringConstraints.h"

Syntax

template<class T, int d>
class TPBDRigidDynamicSpringConstraints : public Chaos::FPBDConstraintContainer

Constructors

Name Description

Public function

TPBDRigidDynamicSpringConstraints

(
    const T InStiffness
)

Public function

TPBDRigidDynamicSpringConstraints

(
    TArray < FConstrainedParticlePair > ...,
    const T InCreationThreshold,
    const int32 InMaxSprings,
    const T InStiffness
)

Destructors

Functions

Name Description

Public function

FConstraintC ...

 

AddConstraint

(
    const FConstrainedParticlePair & In...
)

Add a constraint initialized from current world-space particle positions.

Public function

bool

 

Apply

(
    const T Dt,
    const TArray < FConstraintContainerH ...,
    const int32 It,
    const int32 NumIts
)

Public function

bool

 

ApplyPushOut

(
    const T Dt,
    const TArray < FConstraintContainerH ...,
    const int32 It,
    const int32 NumIts
)

Public function Const

const FHandl ...

 

GetConstConstraintHandles()

Public function Const

const FConst ...

 

GetConstrainedParticles

(
    int32 ConstraintIndex
)

Get the particles that are affected by the specified constraint.

Public function

FConstraintC ...

 

GetConstraintHandle

(
    int32 ConstraintIndex
)

Public function Const

const FConst ...

 

GetConstraintHandle

(
    int32 ConstraintIndex
)

Public function

FHandles &

 

GetConstraintHandles()

Constraint API

Public function Const

int32

 

NumConstraints()

Constraint Container API Get the number of constraints.

Public function

void

 

PrepareConstraints

(
    FReal Dt
)

Island Rule API

Public function

void

 

RemoveConstraint

(
    int ConstraintIndex
)

Remove the specified constraint.

Public function

void

 

RemoveConstraints

(
    const TSet < TGeometryParticleHandle ...
)

Public function

void

 

SetCreationThreshold

(
    const T InCreationThreshold
)

Set the distance threshold below which springs get created between particles.

Public function

void

 

SetMaxSprings

(
    const T InMaxSprings
)

Set the maximum number of springs

Public function

void

 

UnprepareConstraints

(
    FReal Dt
)

Public function

void

 

UpdatePositionBasedState

(
    const T Dt
)

Typedefs

Constants

Name

Description

Dimensions

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback