Navigation
Unreal Engine C++ API Reference > Runtime > Engine > PhysicsEngine > UPhysicsConstraintComponent
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/PhysicsConstraintComponent.h |
Include | #include "PhysicsEngine/PhysicsConstraintComponent.h" |
Source | /Engine/Source/Runtime/Engine/Private/PhysicsEngine/PhysicsConstraintComponent.cpp |
UFUNCTION (BlueprintCallable, Category="Physics|Components|PhysicsConstraint")
void SetLinearDriveParams
(
float PositionStrength,
float VelocityStrength,
float InForceLimit
)
Remarks
Sets the drive params for the linear drive.
Parameters
Name | Description |
---|---|
PositionStrength | Positional strength for the drive (stiffness) |
VelocityStrength | Velocity strength of the drive (damping) |
InForceLimit | Max force applied by the drive |