Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components > API/Runtime/Engine/Components/USkeletalMeshComponent
- UPrimitiveComponent::SetAllPhysicsLinearVelocity()
- USkeletalMeshComponent::SetAllPhysicsLinearVelocity()
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Components/SkeletalMeshComponent.h |
| Include | #include "Components/SkeletalMeshComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/SkeletalMeshComponentPhysics.cpp |
virtual void SetAllPhysicsLinearVelocity
&40;
FVector NewVel,
bool bAddToCurrent
&41;
Remarks
Set the linear velocity of all bodies in this component.
Parameters
| Name | Description |
|---|---|
| NewVel | New linear velocity to apply to physics. |
| bAddToCurrent | If true, NewVel is added to the existing velocity of the body. |