Building blocks

Hello everyone. I doubt this can be done easily but hopefully someone can nudge me in the right direction. I have some rigid body’s representing building blocks that can be dragged around to build things but the problem is as of now it’s kind of difficult because there’s no way to raise/lower the blocks so they ca’t easily be stacked. Also the RigidBodyDrag is kind of slow and inaccurate. Does anyone have some suggestions on ways to achieve the simulation I’m looking for?

What I decided I want to do is drag with the mouse, and raise/lower the objects with the up/down cursor keys.


This is a very crude prototype. There is a lot of things that could be improved/fixed. But I hope it gives you a starting point for your project.

One option is to drag with the mouse like you mentioned and use code to determine when to change levels. So if a block is at level 1 and you collide with it then move to level 2 and so on. I am assuming that you are stacking directly on top in some sort of grid layout. So blocks stack directly on top of other blocks. Let me know if that doesn’t make sense.