I watched the lecture. Circle just moves a little bit after being hit. How can I do this
Welcome to our community!
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
Theoretically, the physics simulation should solve this problem for you. Do both objects have a Collider2D and a Rigidbody2D attached?
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.
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.
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.