Navigation
API > API/Plugins > API/Plugins/PhysicsControl > API/Plugins/PhysicsControl/UPhysicsControlComponent
References
| Module | PhysicsControl |
| Header | /Engine/Plugins/Experimental/PhysicsControl/Source/PhysicsControl/Public/PhysicsControlComponent.h |
| Include | #include "PhysicsControlComponent.h" |
| Source | /Engine/Plugins/Experimental/PhysicsControl/Source/PhysicsControl/Private/PhysicsControlComponent.cpp |
UFUNCTION&40;BlueprintCallable, Category&61;PhysicsControl&41;
bool SetControlLinearData
&40;
const FName Name,
const float Strength,
const float DampingRatio,
const float ExtraDamping,
const float MaxForce,
const bool bEnableControl
&41;
Remarks
Modifies an existing control's linear data - i.e. the strengths etc of the control driving towards the target true if the control was found and modified, false if not
Parameters
| Name | Description |
|---|---|
| Name | The name of the control to modify. |
| Strength | The strength used to drive linear motion |
| DampingRatio | The amount of damping associated with the linear strength. 1 Results in critically damped motion |
| ExtraDamping | The amount of additional linear damping |
| MaxForce | The maximum force used to drive the linear motion. Zero indicates no limit. |
| bEnableControl | Enables the control if it is currently disabled |