TPBDPositionConstraints

Windows
MacOS
Linux

Inheritance Hierarchy

FPBDConstraintContainer

TPBDPositionConstraints

References

Module

Chaos

Header

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

Include

#include "Chaos/PBDPositionConstraints.h"

Syntax

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

Constructors

Name Description

Public function

TPBDPositionConstraints

(
    const T InStiffness
)

Public function

TPBDPositionConstraints

(
    TArray < TVector < T, d >>&& Locatio...,
    TArray < TPBDRigidParticleHandle < T,...,
    const T InStiffness
)

Destructors

Name Description

Public function Virtual

~TPBDPositionConstraints()

Functions

Name Description

Public function

FConstraintC ...

 

AddConstraint

(
    TPBDRigidParticleHandle < T, d >...,
    const TVector < T, d >& Position
)

Add a constraint.

Public function Const

bool

 

Apply

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

Public function Const

bool

 

ApplyPushOut

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

Public function Const

const FHandl ...

 

GetConstConstraintHandles()

Public function Const

TVector < TGe ...

 

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

const TVecto ...

 

GetConstraintPosition

(
    int ConstraintIndex
)

Get the world-space constraint positions for each body.

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 a constraint.

Public function

void

 

RemoveConstraints

(
    const TSet < TGeometryParticleHandle ...
)

Public function

void

 

Replace

(
    const int32 ConstraintIndex,
    const TVector < T, d >& Position
)

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