-
Clamp expression on a child layer?
Hi, I’m fairly green when it comes to understanding expressions, and I have a small problem with the clamp expression. I have NULL that I want to restrict from passing through a “floor”. So i add the clamp expression to its position and everything works, it stops where I need it to stop. The problem comes when I have to link this same NULL to a different parent NULL which also has animation on it. When I link these two together, the expression on the child NULL somehow stops working (no error message), and it can pass through the floor again.
Can someone help me out?
yClamp=clamp(transform.position[1],-800,800);
[transform.position[0],yClamp]