A
A
accacha2021-04-27 11:22:50
Unity
accacha, 2021-04-27 11:22:50

Is it possible to prevent a kinematic object from passing through walls?

Through Vector3.Reflect made the kinematic object bounce off the walls. The jumps themselves work fine, but very often the object goes through walls instead of bouncing off them. This happens when an object is moving both slowly and quickly. On the walls there is a Box Collider 2D and marked Static, on the object a Rigidbody 2D and a Box Collider 2D. Is it possible to make an object always bounce off walls, or is it impossible to do this with a kinematic object?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question