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