FPBDRigidSpringConstraints::AddConstraint

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

Windows
MacOS
Linux

References

Module

Chaos

Header

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

Include

#include "Chaos/PBDRigidSpringConstraints.h"

Source

/Engine/Source/Runtime/Experimental/Chaos/Private/Chaos/PBDRigidSpringConstraints.cpp

Syntax

FConstraintContainerHandle * AddConstraint
(
    const FConstrainedParticlePair & InConstrainedParticles,
    const TVector< FVec3, 2 > & InLocations,
    FReal Stiffness,
    FReal Damping,
    FReal RestLength
)

Remarks

Add a constraint initialized from current world-space particle positions. You would use this method when your objects are already positioned in the world.

Parameters

Parameter

Description

InConstrainedParticles

the two particles connected by the spring

InLocations

the world-space locations of the spring connectors on each particle

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