Navigation
API > API/Plugins > API/Plugins/PhysicsControl
References
| Module | PhysicsControl |
| Header | /Engine/Plugins/Experimental/PhysicsControl/Source/PhysicsControl/Public/PhysicsControlNameRecords.h |
| Include | #include "PhysicsControlNameRecords.h" |
Syntax
struct FPhysicsControlNameRecords
Remarks
All the controls and body modifiers we create get given names, so we can keep a record in a form that will be useful to users. The three general uses are:
All controls or modifiers
The type of control - the obvious ones are "world space" and "parent space", but users might make others
Sets of control/modifiers - the obvious ones are limbs (e.g. a set of world-space controls on the leg) but users might want to make other sets - e.g. "UpperBody"
Variables
| Type | Name | Description | |
|---|---|---|---|
| TMap< FName, TArray< FName > > | BodyModifierSets | All the body modifiers we've created, arranged by set name. | |
| TMap< FName, TArray< FName > > | ControlSets | All the control sets we've created, arranged by set name. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddBodyModifier
(
FName Name, |
Adds Name to SetName as well as adding it to the set "All" | |
| void | AddBodyModifier
(
FName Name, |
Adds Name to SetNames as well as adding it to the set "All" | |
| void | AddBodyModifiers
(
const TArray< FName >& BodyModifierNames, |
Adds a collection of Names to SetName as well as adding them to the set "All" | |
| void | AddControl
(
FName Name, |
Adds Name to SetName as well as adding it to the set "All" | |
| void | AddControl
(
FName Name, |
Adds Name to SetNames as well as adding it to the set "All" | |
| void | AddControls
(
const TArray< FName >& ControlNames, |
Adds a collection of Names to SetName as well as adding them to the set "All" | |
| const TArray< FName > & | GetBodyModifierNamesInSet
(
FName SetName |
||
| const TArray< FName > & | GetControlNamesInSet
(
FName SetName |
||
| void | RemoveBodyModifier
(
FName Name |
Removes Name from all Sets | |
| void | RemoveControl
(
FName Name |
Removes Name from all Sets | |
| void | Reset () |
Remove all control and modifier sets. |