Collision failure

I want to drag the cube and then accumulate it into a hill. I complete the drag function through PointerDragBehavior. However, I don’t know why, collision detection suddenly loses its effect.

If you want collision calculations during a transformation of a mesh you will need to use the moveWithCollisions function of a mesh or compute the collisions yourself (which might be a little cumbersome).

1 Like