Collision detection on object moving into each other
Ok so I have a 2D game where I have an object with a circle collider following my mouse.. You will get different objects thrown at you and u have to hit them away using the circle that's following ur mouse.. All objects have rigidbodies and colliders.. The mouse object does not use gravity and is kinematic..
Everything works fine except for when you have to throw an object really far away, which means you have to hit it harder with the mouse object..
which means u have to move the mouse faster into the object but instead of hitting the object, it kind of teleports into it since it's following my mouse and the mouse moved too quick for it to detect any collision which creates some weird behaviour..
Any idea how I can solve this? It has to follow the mouse, and detect collision even at high speed instead of teleporting into the object..
Edit: I have a method calculating a vector 2 "Location" calculating where the mouse circle object should be each frame and I'm simply doing transform.position = Location; I think it would've worked if I used add force or something like that since it does'nt "teleport" the object to a new position but it won't follow my mouse in that case..