Navigation
API > API/Plugins > API/Plugins/PhysicsControl
References
| Module | PhysicsControl |
| Header | /Engine/Plugins/Experimental/PhysicsControl/Source/PhysicsControl/Public/RigidBodyControlData.h |
| Include | #include "RigidBodyControlData.h" |
Syntax
struct FRigidBodyControlRecord
Remarks
This is the record for a control. It stores the "original" data, which will normally stay fixed. In addition, it will also store some updates to these original data which will determine how the actual controls get used.
Variables
| Type | Name | Description | |
|---|---|---|---|
| int32 | ChildBodyIndex | Cached child body index - needs to be updated whenever the bone name changes. | |
| FPhysicsControl | Control | The configuration data. | |
| FPhysicsControlData | ControlData | This is the currently active control data. | |
| FPhysicsControlMultiplier | ControlMultiplier | This is the currently active control multiplier. | |
| FRigidBodyControlTarget | ControlTarget | Contains any control target that has been set. | |
| FGraphTraversalCounter | ExpectedUpdateCounter | Update counter set when the control was last updated. | |
| ImmediatePhysics::FJointHandle * | JointHandle | The low-level physics representation. | |
| int32 | ParentBodyIndex | Cached parent body index - needs to be updated whenever the bone name changes. | |
| UE::PhysicsControl::FPosQuat | PreviousTargetTM | The previous control target. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FRigidBodyControlRecord
(
const FPhysicsControl& InControl, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FVector | GetControlPoint
(
const ImmediatePhysics::FActorHandle* ChildActorHandle |
Returns the control point, which may be custom or automatic (centre of mass) | |
| bool | IsEnabled () |
Note that this is only correct when called during or after the update has been done. | |
| void | ResetCurrent
(
bool bResetTarget |