Navigation
API > API/Runtime > API/Runtime/GeometryCollectionEngine > API/Runtime/GeometryCollectionEngine/GeometryCollection > API/Runtime/GeometryCollectionEngine/GeometryCollection/UGeometryCollect-
- UPrimitiveComponent::AddForceAtLocation()
- UGeometryCollectionComponent::AddForceAtLocation()
References
| Module | GeometryCollectionEngine |
| Header | /Engine/Source/Runtime/Experimental/GeometryCollectionEngine/Public/GeometryCollection/GeometryCollectionComponent.h |
| Include | #include "GeometryCollection/GeometryCollectionComponent.h" |
| Source | /Engine/Source/Runtime/Experimental/GeometryCollectionEngine/Private/GeometryCollection/GeometryCollectionComponent.cpp |
virtual void AddForceAtLocation
&40;
FVector Force,
FVector Location,
FName BoneName
&41;
Remarks
Add a force to a single rigid body at a particular location in world space. 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. |
| Location | Location to apply force, in world space. |
| BoneName | If a SkeletalMeshComponent, name of body to apply force to. 'None' indicates root body. |