Quantcast
Channel: Questions in topic: "loops"
Viewing all articles
Browse latest Browse all 184

How would I generate a polygon collider from a continuous list during runtime?

$
0
0
I'm looking to create a 2d polygon collider using the vectors of a theoretically endless list of instantiated gameobjects, during runtime. I would just run a for loop through the members of the list and add their vectors as points, but haven't come across a method by w$$anonymous$$ch to add vertices that doesn't involve generating an entirely new collider each time the method is called. I'm fairly new to C#, so forgive me if there's somet$$anonymous$$ng glaring in the documentation that I've missed. Thank you for your time.

Viewing all articles
Browse latest Browse all 184

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>