Navigation
API > API/Plugins > API/Plugins/ApexDestruction > API/Plugins/ApexDestruction/UDestructibleComponent
- UPrimitiveComponent::AddForce()
- UDestructibleComponent::AddForce()
References
| Module | ApexDestruction |
| Header | /Engine/Plugins/Runtime/ApexDestruction/Source/ApexDestruction/Public/DestructibleComponent.h |
| Include | #include "DestructibleComponent.h" |
| Source | /Engine/Plugins/Runtime/ApexDestruction/Source/ApexDestruction/Private/DestructibleComponent.cpp |
virtual void AddForce
&40;
FVector Force,
FName BoneName,
bool bAccelChange
&41;
Remarks
Add a force to a single rigid body. This is like a 'thruster'. Good for adding a burst over some (non zero) time. Should be called every frame for the duration of the force.
Parameters
| Name | Description |
|---|---|
| Force | Force vector to apply. Magnitude indicates strength of force. |
| BoneName | If a SkeletalMeshComponent, name of body to apply force to. 'None' indicates root body. |
| bAccelChange | If true, Force is taken as a change in acceleration instead of a physical force (i.e. mass will have no effect). |