- Home /
Question by
gnp89 · Nov 21, 2018 at 10:10 PM ·
2dcollider2d2d-physicsproceduraldynamic
2D dynamic collider for dynamic shape
I have a black and white texture on screen and I would like that shape to be able to collide with the rest of 2d elements.
Here's an example of the image:
Is there a way I can fill this shape with small circle colliders? Or is it better to detect edges and generate a sprite and a polygon collider? The big challenge is that the shape will change in every frame, because this is filtered from a WebCameraTexture.
Any ideas on how to achieve this?
inrangeexample.png
(2.7 kB)
Comment
Your answer
Follow this Question
Related Questions
Why is there a gap between my player and the wall during wall slide? SOLVED 2 Answers
PolygonCollider2D edit problem 1 Answer
How to select the trigger layer on a Box Collider 2D 2 Answers
Scaling colliders up and down over time 1 Answer
Moving colliders that are part of a composite collider 1 Answer