UPrimitiveComponent::AddTorqueInRadians

Add a torque to a single rigid body.

Windows
MacOS
Linux

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 AddTorqueInRadians
(
    FVector Torque,
    FName BoneName,
    bool bAccelChange
)

Remarks

Add a torque to a single rigid body.

Parameters

Parameter

Description

Torque

Torque to apply. Direction is axis of rotation and magnitude is strength of torque.

BoneName

If a SkeletalMeshComponent, name of body to apply torque to. 'None' indicates root body.

bAccelChange

If true, Torque is taken as a change in angular acceleration instead of a physical torque (i.e. mass will have no effect).

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