Navigation
API > API/Plugins > API/Plugins/PhysicsControl > API/Plugins/PhysicsControl/UPhysicsControlComponent
References
| Module | PhysicsControl |
| Header | /Engine/Plugins/Experimental/PhysicsControl/Source/PhysicsControl/Public/PhysicsControlComponent.h |
| Include | #include "PhysicsControlComponent.h" |
| Source | /Engine/Plugins/Experimental/PhysicsControl/Source/PhysicsControl/Private/PhysicsControlComponent.cpp |
UFUNCTION (BlueprintCallable, Category=PhysicsControl)
FName CreateBodyModifier
(
UPrimitiveComponent * Component,
const FName BoneName,
const FName Set,
const FPhysicsControlModifierData BodyModifierData
)
Remarks
Creates a new body modifier for mesh components
Parameters
| Name | Description |
|---|---|
| Component | The Mesh Component used as a target for the modifier |
| BoneName | The bone name, if a skeletal mesh is used |
| Set | Which set to include the body modifier in (optional). Note that it automatically gets added to the set "All" |
| BodyModifierData | The initial properties of the modifier |