TPBDSpringConstraints::TPBDSpringConstraints

MoveTemp will cast a reference to an rvalue reference.

Windows
MacOS
Linux

References

Module

Chaos

Header

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

Include

#include "Chaos/PBDSpringConstraints.h"

Syntax

TPBDSpringConstraints
(
    const TRigidParticles< T, d > & InParticles,
    TArray< TVector< int32, 2 >> && Constraints,
    const T Stiffness
)

Remarks

MoveTemp will cast a reference to an rvalue reference. This is UE's equivalent of std::move except that it will not compile when passed an rvalue or const object, because we would prefer to be informed when MoveTemp will have no effect.

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