# inertiaTensorRotation from Unity to Unreal

**URL:** <https://forums.unrealengine.com/t/inertiatensorrotation-from-unity-to-unreal/255666>\
**Category:** World Creation\
**Tags:** unreal-engine, Physics\
**Created:** [October 13, 2021, 12:54pm UTC](https://forums.unrealengine.com/t/inertiatensorrotation-from-unity-to-unreal/255666 "2021-10-13T12:54:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![intrus03](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@intrus03](https://forums.unrealengine.com/u/intrus03)\
**Post date:** [October 13, 2021, 12:54pm UTC](https://forums.unrealengine.com/t/inertiatensorrotation-from-unity-to-unreal/255666/1 "2021-10-13T12:54:59Z")

</div>

Hi, I’m porting a project from unity to unreal but I can’t find the equivalent of RigidBody.inertiaTensorRotation

What function should I use?

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![MostHost\_LA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mosthost_la/32/907035_2.png) [@MostHost\_LA](https://forums.unrealengine.com/u/MostHost_LA)\
**Post date:** [October 14, 2021, 12:08am UTC](https://forums.unrealengine.com/t/inertiatensorrotation-from-unity-to-unreal/255666/2 "2021-10-14T00:08:20Z")

</div>

Can you explain what it is used for?

From the descriptions its just the direction the component is allowed to move or rotate ?

---

<div class="post-metadata">

**Author:** ![intrus03](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@intrus03](https://forums.unrealengine.com/u/intrus03)\
**Post date:** [October 14, 2021, 12:50pm UTC](https://forums.unrealengine.com/t/inertiatensorrotation-from-unity-to-unreal/255666/3 "2021-10-14T12:50:11Z")

</div>

I am using it to predict an angular velocity and for that I need to rotate with the state of the inertia tensor.

In unity I have these two properties:  
Rigidbody.inertiaTensor that returns a Vector  
[inertiaTensor](https://docs.unity3d.com/ScriptReference/Rigidbody-inertiaTensor.html)  
and  
Rigidbody. inertiaTensorRotation that returns a Quaternion  
[inertiaTensorRotation](https://docs.unity3d.com/ScriptReference/Rigidbody-inertiaTensorRotation.html)

What is the correspondence of these two functions in Unreal?

---

<div class="post-metadata">

**Author:** ![MostHost\_LA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mosthost_la/32/907035_2.png) [@MostHost\_LA](https://forums.unrealengine.com/u/MostHost_LA)\
**Post date:** [October 14, 2021, 1:18pm UTC](https://forums.unrealengine.com/t/inertiatensorrotation-from-unity-to-unreal/255666/4 "2021-10-14T13:18:23Z")

</div>

Depends.  
On a skeletal mesh it would be the values of the constraint set within the PHAT.

On a constraint asset you have direct access.

They both use the same parameters

> **[Physics Constraint Component User Guide](https://docs.unrealengine.com/4.26/en-US/InteractiveExperiences/Physics/Constraints/ConstraintsBlueprints/)**
>
> A user guide on using the Physics Constraint Component in Blueprints.

Angular limits and what not.

I’m thinking the equivalent would be just reading or setting that value, but I’m not sure what it is you are doing as you haven’t really explained…

---

<div class="post-metadata">

**Author:** ![ceriseraine](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ceriseraine](https://forums.unrealengine.com/u/ceriseraine)\
**Post date:** [October 16, 2024, 6:54am UTC](https://forums.unrealengine.com/t/inertiatensorrotation-from-unity-to-unreal/255666/5 "2024-10-16T06:54:44Z")

</div>

Not sure if you found it, but it seems like the equivalent of InertiaTensorRotation from Unity to now Chaos physics seems to be RotationOfMass, which you can access through the Physics interface function:

`FTransform FChaosEngineInterface::GetComTransformLocal_AssumesLocked(const FPhysicsActorHandle& InActorReference)`

which returns to RotationOfMass as the transform’s rotation and the CenterOfMass as the transform’s location
