I’m busy with a 2d game, I have a waterwheel and some buckets. I want the buckets to be attached to the waterwheel, in a way, that while the wheel is rotating, the buckets should stay in the same location with ref to the wheel, and not rotate as the wheel turns. Any suggestions?
I’m assuming you are asking how to keep the buckets pointed up and still be children of the wheel. You can reset the bucket rotation at every frame to point up. Put this in the LateUpdate() of a script attached to each bucket:
var q = Quaternion.FromToRotation(transform.up, Vector3.up);
transform.rotation = q * transform.rotation;