Navigation
API > API/Plugins > API/Plugins/PhysicsControl
References
| Module | PhysicsControl |
| Header | /Engine/Plugins/Experimental/PhysicsControl/Source/PhysicsControl/Public/PhysicsControlRecord.h |
| Include | #include "PhysicsControlRecord.h" |
Syntax
struct FPhysicsControlRecord
Remarks
There will be a PhysicsControlRecord created at runtime for every Control that has been created
Variables
| Type | Name | Description | |
|---|---|---|---|
| TWeakObjectPtr< UPrimitiveComponent > | ChildComponent | The mesh that the control will be driving. | |
| TSharedPtr< FConstraintInstance > | ConstraintInstance | The underlying constraint used to implement the control. | |
| FPhysicsControlTarget | ControlTarget | The position/orientation etc targets for the controls. | |
| FGraphTraversalCounter | ExpectedUpdateCounter | Only use the previous target TM if the current counter is equal to this expected counter. | |
| TWeakObjectPtr< UPrimitiveComponent > | ParentComponent | The mesh that will be doing the driving. Blank/non-existent means it will happen in world space | |
| FPhysicsControl | PhysicsControl | The configuration data | |
| UE::PhysicsControl::FPosQuat | PreviousSkeletalTargetTM | The previous skeletal control target. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FPhysicsControlRecord
(
const FPhysicsControl& InControl, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FVector | Returns the control point, which may be custom or automatic (centre of mass) | ||
| bool | InitConstraint
(
UObject* ConstraintDebugOwner, |
Creates the constraint if necessary and stores it. | |
| void | Removes any constraint and resets the state | ||
| void | Sets the control point to the center of mass of the child mesh (or to zero if that fails). | ||
| void | Ensures the constraint frame matches the control point in the record. |