dreamig
01-02-2014 22:40:23
Hi,
i have cylinder i want to now if i change the center of mass of the cylinder is that mean i change the cylinder position ?
dreamig
03-02-2014 09:08:18
i think : when i change the position of the center of mass
that change the cylinder orientation not the cylinder position
mikachu
06-02-2014 21:34:06
Hi,
Assuming the mass is uniformly distributed, the center of mass of a cylinder is located at the middle of its axis, so yes, it is affected by the cylinder's position and orientation.
dreamig
09-02-2014 10:44:12
Hi,
in the middle you mean
we make
COM-= cylinder->getPosition()/2?
mikachu
10-02-2014 13:26:56
in the middle you mean
we make
COM-= cylinder->getPosition()/2?
No.
If you give no position/orientation to your cylinder in OgreProcedural, its center of mass is at (0,height/2,0).
If it is attached to a sceneNode called cylinder, then COM = cylinder->_getDerivedPosition() + (cylinder->_getDerivedOrientation() * (0,height/2,0))