Question by
sonataa · Jun 23, 2017 at 04:17 AM ·
inputmousephysics2dcollider2d
2d collisions physics not working when using mouse as input
Hello, I am new to Unity so excuse any silly mistakes but I have a dynamic rigidbody with a box collider in 2d and I am trying to make it colide with a bunch of edge colliders (also 2D). I have searched every possible thread and I know that mouse input translates the position which overrides the physics but is there some workaround? Raycasting did not work either.
Please note that collisions are detected in my script but i want the edge colliders to block the colliding object's movement.
Comment