Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UPrimitiveComponent
Description
Scales the given vector by the world space moment of inertia. Useful for computing the torque needed to rotate an object.
| Name | ScaleByMomentOfInertia |
| 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 (BlueprintPure, Category="Physics",
Meta=(Keywords="physics moment of inertia tensor MOI", UnsafeDuringActorConstruction="true"))
virtual FVector ScaleByMomentOfInertia
(
FVector InputVector,
FName BoneName
) const