Physics constraint not keeping distance between cubes

Hi there,

I’ve been practicing with physics for the last few days but I can’t get something very simple to work.

In a blueprint I have two cubes, the top one ‘MovingCube’ slides back and forth through an animation. And a cube below it (PhysicsActor with Simulate Physics enabled).
I’ve added a PhysicsConstraint as a child of the MovingCube (so it follows the movement) and added both component names to the Physics Constraint.
However, as soon as I simulate this, it looks like the PhysicsConstraint is not attached to the ‘MovingCube’ but to the Root of the blueprint. Also, the relationship (distance) between the two cubes seems to be completely gone. ‘Cube’ falls down into the infinity while ‘MovingCube’ still remains in its original height.

1st.
Is the constraint actually socketed?

2nd.
Probably avoid physics for this.
Make a BP that animates the cubes position over time.
Unless you need it to swing, in which case physics is almost the only option, there’s no need to use either a skeletal mesh OR an animation…

1 Like