Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / What is the difference between AddSpriteShapePolygon() and AddSpriteShapeChain()?

Author
Message
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 15th Sep 2018 04:13
AddSpriteShapePolygon()
AddSpriteShapeChain()

Thanks in advance for any insight
Increase
7
Years of Service
User Offline
Joined: 21st Feb 2017
Location:
Posted: 15th Sep 2018 04:58 Edited at: 15th Sep 2018 05:02
For me, the chain looks like an improved version of the polygon; unlimits the points and adds an option.
Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 16th Sep 2018 14:47
From the help files it seems the difference is Concave vs Convex
A Polygon must be Convex but a chain can be Concave and therefore useful for more complex shapes like terrains
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 16th Sep 2018 21:23
Having tried this it is fantastic. I've tried many different shapes and it works fine

Login to post a reply

Server time is: 2024-11-23 16:33:38
Your offset time is: 2024-11-23 16:33:38