Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UPrimitiveComponent
Description
Add an impulse to a single rigid body at a specific location. The Strength is taken as a change in angular velocity instead of an impulse (ie. mass will have no effect).
| Name | AddVelocityChangeImpulseAtLocation |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Components/PrimitiveComponent.h |
| Include Path | #include "Components/PrimitiveComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/PrimitiveComponentPhysics.cpp |
UFUNCTION (BlueprintCallable, Category="Physics", Meta=(UnsafeDuringActorConstruction="true"))
virtual void AddVelocityChangeImpulseAtLocation
(
FVector Impulse,
FVector Location,
FName BoneName
)
Parameters
| Name | Remarks |
|---|---|
| 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. |