Physics - bsolver, objects intersecting

I have followed a lot of the beginning tutorials and specifically the Physics in TD 101.
All I am trying to do (right now) is have a block that I move with the mouse, push a thin block across a surface.

All 3 are actors inside bsolver. Update Collision Shape is ON for all. All three are convex hull. Continuous Collision Detection is ON.

The larger white block’s position is controlled by the mouse in Xform, Translate. When I move it, it moves INTO the orange thinner block. And when I stop, it then pops up onto the the thin block (avoiding collision I guess?) But it barely moves it. When I make the blocks the same size, I have more success, but there’s still a lot of intersecting going on.

[Ultimately, I’m trying to create projected a bed of leaves through which an actor walks and the leaves move “realistically” in response to the movement.. I am a long way from that, but I figured useing the physics engine would be the way to go.]

For the most realistic results, objects should be controlled using velocity rather than translation.

As far as the simulation is concerned, translation amounts to teleportation and the object will have no inertia, so collisions won’t behave as they would in the real world. If they occupy the same space then they will be displaced by the simulation which is part of the glitchy behavior you’re experiencing. That, combined with the lack of the inertia are why it would look like the blocks are barely moving.

The Bullet Solver COMP snippet “2D attraction” might be helpful to have a look at for your case.

1 Like

Thank you! This did the trick!

1 Like