Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components > API/Runtime/Engine/Components/UPrimitiveComponent
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Components/PrimitiveComponent.h |
| Include | #include "Components/PrimitiveComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/PrimitiveComponentPhysics.cpp |
UFUNCTION (BlueprintCallable, Category="Physics", Meta=(UnsafeDuringActorConstruction="true"))
virtual void AddImpulseAtLocation
(
FVector Impulse,
FVector Location,
FName BoneName
)
Remarks
Add an impulse to a single rigid body at a specific location.
Parameters
| Name | Description |
|---|---|
| Impulse | Magnitude and direction of impulse to apply. |
| Location | Point in world space to apply impulse at. |
| BoneName | If a SkeletalMeshComponent, name of bone to apply impulse to. 'None' indicates root body. |