UPrimitiveComponent::SetAllPhysicsLinearVelocity

Set the linear velocity of all bodies in this component.

Windows
MacOS
Linux

Override Hierarchy

UPrimitiveComponent::SetAllPhysicsLinearVelocity()

USkeletalMeshComponent::SetAllPhysicsLinearVelocity()

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

Syntax

virtual void SetAllPhysicsLinearVelocity
(
    FVector NewVel,
    bool bAddToCurrent
)

Remarks

Set the linear velocity of all bodies in this component.

Parameters

Parameter

Description

NewVel

New linear velocity to apply to physics.

bAddToCurrent

If true, NewVel is added to the existing velocity of the body.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss