Constraint Smoothing Factor breaks on animated transforms
closed
lackofbindings
If you set the smoothing factor above zero on a constraint that is on a gameobject with a transform that is also animated, the transform returns to what looks like unconstrained state, while vibrating rapidly. The constraint should override the animation like when there is no smoothing factor.
Tested on SDK 3.10.6
Log In

Dexvoid
updated the status to
closed
Sorry, from your description it seems like this is expected behavior.
Each frame, the animator moves the constrained transform away from where the constraint is trying to place it. Later in the same frame, the constraint will then move the transform back to the constrained position. When the smoothing factor is zero, the constraint's movement applies fully so the transform visually stays fixed at the constrained position, but when the smoothing factor is above zero, this is only partially applied based on the current frame rate. This can cause the transform to start visibly jittering when using a small smoothing factor as the animator moves it away from its constrained position.
I've reproduced this in an SDK project by having an animated transform with a parent constraint that has a smoothing factor of 0.01. You could consider disabling the constraint during frames where the transform is being animated, or separating the animated transform from the transform that has a constraint on it. If this isn't the issue you're seeing, feel free to let us know with more detail, ideally including a repro avatar so we can see your setup.
This post was marked as
tracked