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 | FPhysicsControlSparseMultiplier |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/PhysicsControl/Source/PhysicsControl/Public/PhysicsControlData.h |
| Include Path | #include "PhysicsControlData.h" |
Syntax
USTRUCT (BlueprintType )
struct FPhysicsControlSparseMultiplier
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FPhysicsControlSparseMultiplier() |
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 |
|
| bEnableAngularDampingRatioMultiplier | uint8 | PhysicsControlData.h |
|
|
| bEnableAngularExtraDampingMultiplier | uint8 | PhysicsControlData.h |
|
|
| bEnableAngularStrengthMultiplier | uint8 | PhysicsControlData.h |
|
|
| bEnableLinearDampingRatioMultiplier | uint8 | PhysicsControlData.h |
|
|
| bEnableLinearExtraDampingMultiplier | uint8 | PhysicsControlData.h |
|
|
| bEnableLinearStrengthMultiplier | uint8 | Flags for sparse access. | PhysicsControlData.h |
|
| bEnableMaxForceMultiplier | uint8 | PhysicsControlData.h |
|
|
| bEnableMaxTorqueMultiplier | uint8 | 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
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator==
(
const FPhysicsControlSparseMultiplier& other |
PhysicsControlData.h |