TPBDConstraintGraphRuleImpl

ConstraintGraphRule helper base class - templatized on Constraint Container.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Chaos

Header

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

Include

#include "Chaos/PBDConstraintRule.h"

Syntax

template<typename T_CONSTRAINTS>
class TPBDConstraintGraphRuleImpl : public Chaos::FPBDConstraintGraphRule

Remarks

ConstraintGraphRule helper base class - templatized on Constraint Container.

Variables

Name Description

Protected variable

FPBDConstraintG...

 

ConstraintGraph

Protected variable

FConstraints &

 

Constraints

Protected variable

uint32

 

ContainerId

Constructors

Name Description

Public function

TPBDConstraintGraphRuleImpl

(
    FConstraints& InConstraints,
    int32 InPriority
)

Overridden from FPBDConstraintGraphRule

Name Description

Public function Virtual

void

 

AddToGraph()

Add all constraints to the connectivity graph

Public function Virtual

void

 

BindToGraph

(
    FPBDConstraintGraph& InContactGrap...,
    uint32 InContainerId
)

Public function Virtual Const

int32

 

NumConstraints()

The number of constraints in the collection

Public function Virtual

void

 

UpdatePositionBasedState

(
    const FReal Dt
)

Called once per tick to allow constraint containers to create/alter their constraints based on particle position

Overridden from FConstraintRule

Name Description

Public function Virtual

void

 

PrepareConstraints

(
    FReal Dt
)

Called once per frame before Apply. Can be used to prepare caches etc.

Public function Virtual

void

 

UnprepareConstraints

(
    FReal Dt
)

Called once per frame after Apply.

Typedefs

Name

Description

FConstraints

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss