Rotation of Object around it's centre of mass

AI Thread Summary
To rotate an object around its center of mass instead of the origin, the suggested method involves translating the object so its center of mass aligns with the origin, performing the rotation, and then translating it back. However, this approach may lead to increased calculations, potentially impacting program performance. An alternative method is proposed, which involves using a formula that requires only four multiplications and six additions, making it computationally efficient. The discussion highlights the need for clarity on this formula, especially for those not using matrices in their calculations. Understanding this method can simplify the rotation process while maintaining performance.
mahi.aw
Messages
4
Reaction score
0
Hi all I am new here!

can anyone tell me how can i rotate the object around it's center of mass and not the origin of Cartesian co-ordinates(0,0)..

thanks in advance for help..
 
Physics news on Phys.org
1. translate the object so its center of mass is at the origin
2. rotate it.
3. translate it back.
 
Hi willem thanks for your prompt reply..

It's sounds good...

But if i do like this way i think i need to do more and more calculations,,which ultimately leads to reduce performance of my program..

is there way to rotate it without translating the object center of mass to it's origin??
 
mahi.aw said:
Hi willem thanks for your prompt reply..

It's sounds good...

But if i do like this way i think i need to do more and more calculations,,which ultimately leads to reduce performance of my program..

is there way to rotate it without translating the object center of mass to it's origin??

The method it's been suggested is very quick for a computer as it implies something like only 4 multiplications and 6 additions.

Any other method leads certainly to more complex equations.
 
Hi Quinzio,

Thanks for your reply..
But i did not get the idea of 4 multiplications and 4 additions??
could you please elaborate on it?
 
Then I think you need the complete formula (this is not the homework section, btw), then you can elaborate it.

<br /> \left\{\begin{matrix}<br /> {x}&#039;= (x-x_M)cos \alpha - (y-y_M)sin \alpha+x_M<br /> \\ <br /> {y}&#039;= (y-y_M)cos \alpha + (x-x_M)sin \alpha+y_M<br /> <br /> \end{matrix}\right.<br />
 
i know that...but i asked just b/c am not using any matrices in calculation..

thanks & regards
 
Back
Top