Navigation
API > API/Plugins > API/Plugins/PhysicsControl
Contains data associated with how physical bodies should be controlled/directed towards their targets. The underlying control is done through damped springs, so the parameters here relate to that.
| Name | FPhysicsControlData |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/PhysicsControl/Source/PhysicsControl/Public/PhysicsControlData.h |
| Include Path | #include "PhysicsControlData.h" |
Syntax
USTRUCT (BlueprintType )
struct FPhysicsControlData
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FPhysicsControlData() |
PhysicsControlData.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AngularDampingRatio | float | The amount of damping associated with the angular strength. | PhysicsControlData.h |
|
| AngularExtraDamping | float | The amount of additional angular damping. | PhysicsControlData.h |
|
| AngularStrength | float | The strength used to drive angular motion | PhysicsControlData.h |
|
| AngularTargetVelocityMultiplier | float | Multiplier on the angular velocity, which gets applied to the damping. | PhysicsControlData.h |
|
| bDisableCollision | bool | Whether or not this control should disable collision between the parent and child bodies (only has an effect if there is a parent body) | PhysicsControlData.h |
|
| bEnabled | bool | Whether this control should be enabled | PhysicsControlData.h |
|
| bOnlyControlChildObject | bool | If true then the control will only affect the child object, not the parent | PhysicsControlData.h |
|
| bUseCustomControlPoint | bool | Whether or not to use the custom control point position | PhysicsControlData.h |
|
| bUseSkeletalAnimation | bool | If true then the target will be applied on top of the skeletal animation (if there is any) | PhysicsControlData.h |
|
| CustomControlPoint | FVector | The position of the control point relative to the child mesh, when using a custom control point. | PhysicsControlData.h |
|
| LinearDampingRatio | float | The amount of damping associated with the linear strength. | PhysicsControlData.h |
|
| LinearExtraDamping | float | The amount of additional linear damping. | PhysicsControlData.h |
|
| LinearStrength | float | The strength used to drive linear motion | PhysicsControlData.h |
|
| LinearTargetVelocityMultiplier | float | Multiplier on the linear velocity, which gets applied to the damping. | PhysicsControlData.h |
|
| MaxForce | float | The maximum force used to drive the linear motion. Zero indicates no limit. | PhysicsControlData.h |
|
| MaxTorque | float | The maximum torque used to drive the angular motion. Zero indicates no limit. | PhysicsControlData.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FVector GetControlPoint
(
const ImmediatePhysics::FActorHandle* ChildActorHandle |
Returns the control point, which may be custom or automatic (centre of mass) | PhysicsControlData.h | |
void UpdateFromSparseData
(
const FPhysicsControlSparseData& 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 FPhysicsControlData& other |
PhysicsControlData.h |