How to move a RigidBody2D to a position while still checking for collision

I am currently creating a game in Unity, in which you move a ball around using OnMouseDrag(), a CircleCollider2D and a RigidBody2D. This is how I set the position of the ball: private void OnMouseDrag() { Vector2 mouseInWorld = Camera.main.ScreenToWorldPoint(Input.mousePosition); playerRb.position = new Vector3(mouseInWorld.x, mouseInWorld.y, 0); } I still want the ball to get stuck…

Details

Fitness Core Data Model

I have a Core Data Model with a relationship between FitnessDevice and Exercise entities. The Exercise can be executed multiple times with different repetitions and weight so I created a Serie entity with those properties and added a relationship between Exercise and Serie. Now I would like to add „cardio“ fitness-devices. A cardio device doesn’t…

Details