Hello,
In my project, I move one object with the mouse by 3 different ways :
- on X axis of the object
- on Z axis of the object
- or freely on X and Z axes
In the scene, you have several objects to move, each with MeshColliders (convex = true) and Rigidbody (useGravity = false, isKinematic = false, contraints on position Y and constraints rotation on the 3 axis),
The objects to move is surrounded by walls with MeshColliders (convex = true).
If I select an object, a helper appears to move, rotate and scale the selected object.
By pressing the x axis of the helper, by example, the mouse move the helper along his x axis. The selected object became a child of the helper.
Now, I need to stop the object when is collide to avoid penetration with others objects or walls.
So far, I have a return of the collision, the selected object stop but if I continue to move the helper, the selected object bounced against the other object (collision).
Even if I move slowly the mouse, the selected object continue to bounce and goes through the wall.
What am I missing ?
I need help, please.