- Home /
Question by
theawesome1 · Jun 12, 2021 at 05:26 AM ·
2dcolliderlinerenderer
how to make line renderer have a collider (2d)
I was following this tutorial: https://www.youtube.com/watch?v=_ILOVprdq4o and now I want to add a collider to the line renderer. Does anyone know how to do that?
Comment
Answer by alextejada · Jun 13, 2021 at 07:34 AM
You can use a "Edge Collider 2D" component, and set the points to reach the desired result. Note that you need to set 5 points to complete a square collider or more points for most complex results.
Your answer
Follow this Question
Related Questions
Detecting if the object is hit by LineRenderer 1 Answer
How to move BoxCollider2D so it covers a line renderer? 0 Answers
help with a player moving in a grid with obstacles 2d 0 Answers
Top Down 2d (PC): Gameobjects' Colliders intermeshing 1 Answer
[2D] Is it possible to un-ignore collisions between colliders? 1 Answer