Hello there, once again!
This time, I have a question on how to properly model objects being expelled from a container. In this example, I want some cubes to permanently leave a sphere (tree collision object) through a hole.
To explain things easier, I made a simple drawing: https://docs.google.com/drawings/pub?id ... =960&h=720
The blue cubes are inside the body, the red ones are outside. The blue arrows visualize the force, that is supposed to drive the cubes towards the exit, with the small blue dot being the origin of the force.
The white box at the exit is supposed to be a virtual contact body, meaning it should detect when a cube touches it (so I know a cube has left the sphere), but should not provide any collision whatsoever.
Cubes that touch the virtual contact body have their ForceCallback changed to the red version, meaning they should be repelled by the red dot, resulting in velocities as roughly indicated by the red arrows.
My problem: while this solution, theoretically, sounds doable, I am not sure, whether this is a very elegant way of doing things. Do you have any suggestions on how improve my model? Am I doing things complicated or outright wrong? Or am I just paranoid?
Thanks everybody!