# Setting up Center of Mass on Prop3d object without moving the object

**URL:** https://discourse.vtk.org/t/setting-up-center-of-mass-on-prop3d-object-without-moving-the-object/8559
**Category:** Support
**Tags:** code
**Created:** [May 23, 2022, 7:17pm UTC](https://discourse.vtk.org/t/setting-up-center-of-mass-on-prop3d-object-without-moving-the-object/8559 "2022-05-23T19:17:52Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Marone](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/m/b5a626/32.png) [@Marone](https://discourse.vtk.org/u/Marone)
#### Post date: [May 23, 2022, 7:17pm UTC](https://discourse.vtk.org/t/setting-up-center-of-mass-on-prop3d-object-without-moving-the-object/8559/1 "2022-05-23T19:17:52Z")

</div>

I am trying to set a centre of mass with SetOrientation() function and then apply RotationWXYZ() on the object. The thing is when I use SetOrientation on the object it moves it. I only want to set centre of mass around which to apply the rotation, not move it.

---

<div class="post-metadata">

### Author: ![Marone](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/m/b5a626/32.png) [@Marone](https://discourse.vtk.org/u/Marone)
#### Post date: [May 30, 2022, 10:09am UTC](https://discourse.vtk.org/t/setting-up-center-of-mass-on-prop3d-object-without-moving-the-object/8559/2 "2022-05-30T10:09:31Z")

</div>

Does anyone know the solution to this? q.q
