(2D) So I have this wall image that is moving at a decent speed, only horizontally. Then, I have falling balls whose diameter is about 1/3 of the width of the wall image. The ball constantly gets stuck in the middle of the wall or goes right through it. I tried decreasing the tick time, as well as changing the detection to interpolate and continuous, but to no avail. Any thoughts?
How are you moving the objects? Are they just falling from gravity? Are you using AddForce?
The falling objects are moving from gravity ( i turned off rotations), and the horizontal object is a static rigidbody i move by changing coordinates. If i move the horizontal wall slowly, it works great. But at higher speeds, it ignores it
How are you moving the rigidbody? Are you changing the transform’s position? Or are you using rb.MovePosition()?
im changing the transform’s position
That’s probably the reason then. With Unity’s physics system, you’re not supposed to directly change the transform of an object. It results in an incorrect physics simulation. Look into Rigidbody.MovePosition and Rigidbody.MoveRotation when you need to manually move/rotate a rigidbody.
Thank you!