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 / Using SetSpriteShapePolygon yields bounding out of place with convex polygon

Author
Message
Naphier
13
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: St Petersburg, Florida
Posted: 28th Jan 2013 02:16
Long-winded title... anyway...
I'm working through Hands on AppGameKit and am in Chapter 17 with working with bounding boxes. The book has us create the attached program to create polygon bounding shapes. After tinkering I found that I have to select the vertices in CCW order and the physics debug shading falls outside of the shape around a couple of vertices.
It's odd and I can't figure it out.
Could someone take a quick look at the attached program and code to let me know what I'm doing wrong?
It's probably a moot point anyway since I'll be using baxslash's handy tool, but knowing is half the battle.
Cheers!

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-05-06 22:14:40
Your offset time is: 2024-05-06 22:14:40