Navigation
API > API/Plugins > API/Plugins/PhysicsControl
These parameters allow modification of the parameters in FPhysicsControlData for two reasons:
They allow per-axis settings for the linear components (e.g. so you can drive an object horizontally but still let it fall under gravity)
They make it easy to create the controls with "default" strength/damping (e.g. taken from the physics asset) in FPhysicsControlData, and then the strength/damping etc can be scaled every tick (typically between 0 and 1, though that is up to the user).
| Name | FPhysicsControlMultiplier |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/PhysicsControl/Source/PhysicsControl/Public/PhysicsControlData.h |
| Include Path | #include "PhysicsControlData.h" |
Syntax
USTRUCT (BlueprintType )
struct FPhysicsControlMultiplier
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FPhysicsControlMultiplier() |
PhysicsControlData.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AngularDampingRatioMultiplier | float | Multiplier on the angular damping ratio. | PhysicsControlData.h |
|
| AngularExtraDampingMultiplier | float | Multiplier on the angular extra damping. | PhysicsControlData.h |
|
| AngularStrengthMultiplier | float | Multiplier on the angular strength. | PhysicsControlData.h |
|
| LinearDampingRatioMultiplier | FVector | Per-direction multiplier on the linear damping ratio. | PhysicsControlData.h |
|
| LinearExtraDampingMultiplier | FVector | Per-direction multiplier on the linear extra damping. | PhysicsControlData.h |
|
| LinearStrengthMultiplier | FVector | Per-direction multiplier on the linear strength. | PhysicsControlData.h |
|
| MaxForceMultiplier | FVector | Per-direction multiplier on the maximum force that can be applied. Note that zero means zero force. | PhysicsControlData.h |
|
| MaxTorqueMultiplier | float | Per-direction multiplier on the maximum torque that can be applied. Note that zero means zero torque. | PhysicsControlData.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void UpdateFromSparseData
(
const FPhysicsControlSparseMultiplier& SparseData |
Applies the values that have been flagged as enabled from the sparse data | PhysicsControlData.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator==
(
const FPhysicsControlMultiplier& other |
PhysicsControlData.h |