I have a project that needs to give 2D physics to a 3D object. Here's essentially what I'm trying to create.
This 3D cube (I squashed its scale to look like a plane), should be able to translate and rotate in 3D space, but there is a circle that can only translate on the surface of one face of the 3D cube. However, if the cube rotates around, the circle should move following the gravity of the world. This is sort of like an accelerometer display or a pinball machine.
This is what I'm trying to achieve:
One of the constraints that I'm facing is that:
- The circle should never leave the cube's surface
- The circle needs to have mass
- The circle needs to collide with the edges
However, I'm struggling to find the necessary tools in Blender 3.0.1 that can achieve this. Does anyone have any ideas?