Module |
|
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 |
FConstraintContainerHandle * AddConstraint
(
const FConstrainedParticlePair & InConstrainedParticles,
const TVector< FVec3, 2 > & InLocations,
FReal Stiffness,
FReal Damping,
FReal RestLength
)
Add a constraint initialized from current world-space particle positions. You would use this method when your objects are already positioned in the world.
Parameter |
Description |
---|---|
InConstrainedParticles |
the two particles connected by the spring |
InLocations |
the world-space locations of the spring connectors on each particle |