I am making cement mixer so I want this object (mixer drum) to just rotate but not come out of its base.
-
$\begingroup$ Your local y axis is skewed, this will show in edit mode. You want the local y axis pointing directly out of the mixer. Like this The easiest solution is to add an empty to scene as bowl parent and rotate that. Will look for links as I've seen this one many times before.. $\endgroup$– batFINGEROct 21, 2017 at 14:12
-
$\begingroup$ I am a beginner and this makes me so much confused, lol I did not know it could be very difficult. $\endgroup$– AamirOct 21, 2017 at 15:06
-
$\begingroup$ Adding an empty did not help. $\endgroup$– AamirOct 21, 2017 at 15:08
-
$\begingroup$ I tried to apply the "empty" method to your file, to create an answer, but unfortunately it appears that the rotating part is not modeled well... due to this, even correcting the local Y axis it will make rotation around it irregular (the mesh will rotate around corrected local Y axis in elliptic way, so to say)... this make it more difficult to solve... It will take more time and much many more solution steps, if possible at all. $\endgroup$– m.arditoOct 21, 2017 at 15:34
-
$\begingroup$ Can you model another same (drum) model as it should work and try again?,,,,,,,,,,, i am really sick of it. $\endgroup$– AamirOct 21, 2017 at 15:42
4 Answers
I'll try to show here what I said above in comments.
This is the drum from your object and I highlighted its pivot point as it is in the file. I also placed an empty to its current position, as a marker.
But if you think that the pivot point is well positioned, you should try to "recalculate" it origin to the geometry
And you get this: you see it is now a different position... this is what makes the drum to rotate wrongly even after correcting the local axis...
If this mesh was designed better, this following method would have worked, to reset the local Y axis to get a better rotation animation:
first, I selected a ring from the mesh (which is supposed to rotate well around a corrected Y axis), duplicated it as a separate object, and used it to calculate the current rotation using an empty:
the empty is placed at the new ring center (obtained with "origin to the geometry") and in side view, with the help of vertex snap tools, rotated until it matches the ring mesh, and you so you get the (wrong) rotation angle between the empty and the ring.
you then have to use that angle to correct the real "drum" angle
as you see the drum Y local axis has now the right rotation, but if you compare the empty position and the drum pivot, it is easy to understand that this will not work good in animation either...
I cannot model the drum for you (btw I'm on holiday) but at least you know something more than before :D maybe someone else will add more help...
-
$\begingroup$ Thank you so much for very clear answer, i really appreciate $\endgroup$– AamirOct 22, 2017 at 18:51
Re-align the local axis.
- Object mode.
- Select the mesh object and transform its origin to center of mass
(volume).
Object > Transform > to Center of mass (volume)
. - Clear the keyframes.
Put view in right ortho Numpad 5 I've also changed to wireframe view Z and rotated the mesh in x (quickly by eye) to align vertically. (See note at bottom). So don't go by the 14.3 in iamge, take care in this step to get best result.
Apply rotation to the object. This will realign the local coordinates.
Object > Apply > Rotation
ctrlA- Change the euler rotation order to
ZYX Euler
The x tilt wont effect the Y rotation in this order. - Rotate back to match the tilt, Now can keyframe in Y to make the
mixer spin
Ideally would rotate in step 4 to align horizontally. Maxing the axis of rotation z after applying rotation. This would take out the need for step 6
Without having the blend file to look at, it looks like you need to change the object’s origin point. It could also be that you should rotate around local axis rather than global.