spritebuilder / SpriteBuilder

Objective-C Game Development Suite
http://www.spritebuilder.com/
Other
740 stars 292 forks source link

Allow polyline physics shape in spritebuilder #1583

Open clickstan opened 9 years ago

clickstan commented 9 years ago

A simple addition, useful to add performance on top of polygon: allow an option for POLYLINE in the physics shape options. This could be grouped with the polygon, so the points are the same. Almost no code changes needed, just to keep all the polygon points without breaking them into smaller polygons.

Also great for other uses, like being able to parse the polygon points for other in-game uses. (Right now, only the broken-up polygons can be parsed, making this difficult)

screen shot 2015-04-22 at 11 32 51 am

collidernyc commented 9 years ago

I agree with this - Polyline option would be super useful. Thanks for adding this @clickstan

clickstan commented 9 years ago

I agree, and would be a quick addition.

Lazzl0 commented 9 years ago

I agree as well. This would be great and would save a lot of time and effort put into level building.

pinestein commented 9 years ago

I agree with @clickstan and the rest of you. This would be very useful in a number of cases. It would be awesome to hear if this is on the roadmap, like stan said - the data is already there :)