UPrimitiveComponent::SetPhysicsAngularVelocity

Set the angular velocity of a single body.

Windows
MacOS
Linux

Deprecated

  • Use SetPhysicsAngularVelocityInDegrees instead.

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Components/PrimitiveComponent.h

Include

#include "Components/PrimitiveComponent.h"

Syntax

void SetPhysicsAngularVelocity
(
    FVector NewAngVel,
    bool bAddToCurrent,
    FName BoneName
)

Remarks

Set the angular velocity of a single body. This should be used cautiously - it may be better to use AddTorque or AddImpulse.

Parameters

Parameter

Description

NewAngVel

New angular velocity to apply to body, in degrees per second.

bAddToCurrent

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

BoneName

If a SkeletalMeshComponent, name of body to modify angular velocity of. 'None' indicates root 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