Question by
Hassan_N · Feb 17, 2016 at 01:49 PM ·
collisionprogrammingline renderer
How to detect Line Renderer Collision with object with collider ?
i have a line renderer that is hand drawing in 2d game and i need to detect if that line is colliding with any object with collider will it be making a box collider for each point "i have list of points that make the line"
Comment
Answer by tormentoarmagedoom · Aug 07, 2018 at 12:27 PM
You can try to add a collider to the line and detect regular colliders collisions
replace box collider 2D to Edge collider 2D... and set mEdgeCollider2D.points = drawlinepoints.ToArray()... hope its works