24-01-2023, 08:28 AM
(23-01-2023, 04:37 PM)patriot4947 Wrote: both of them are moving car moving with obi softbody force and wall moving with transform translate
That means the wall is essentially teleporting from frame to frame, which will make it very easy to overlap other objects.
In Unity, to move an object in a way consistent with physics it must be a kinematic rigidbody and you should use the rigidbodie's MovePosition() method. (Or, non-kinematic object and move it by using AddForce() if you wish for it to react to other object's movement).
kind regards,