The circle blew to the opposite side after being hit by a car

I watched the lecture. Circle just moves a little bit after being hit. How can I do this


Welcome to our community! :slight_smile:

What exactly would you like to do? Is the circle supposed to move?

Yes. I want to move the circle to the opposite direction that was hit by the car :grinning_face_with_smiling_eyes:

Theoretically, the physics simulation should solve this problem for you. Do both objects have a Collider2D and a Rigidbody2D attached?

1 Like

Do you want the circle to bounce away after the collision? I’d also like to know the answer to that. I reduced the mass of the circle, but it still has a ‘bulldozer’ affect. I’m guessing that’s a future lesson. :slight_smile:

Hi @CuriousCloud,

Tweaking the value of the mass was a good idea. For testing purposes, try 0.01 or something like that if you haven’t already.

Also make sure that the position of the circle is not controlled by your script component. Otherwise, your component might override the position calculated by the physics simulation.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.