Box2D Forums

It is currently Fri May 24, 2013 4:54 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Dec 28, 2007 4:44 pm 
Offline

Joined: Fri Dec 28, 2007 4:22 pm
Posts: 3
Hi, really getting into the flash engine many thanks :) Couple of things I can't figure out -

- in the manual it states that vertices must be specified in counter-clockwise order, to me the coords given look clockwise (and work clockwise)?
(-1.0, 0.0) (1.0, 0.0) (0.0, 2.0)
Perhaps are the axis different for flash or have I missed something? To me they seem to draw correctly when specified in clockwise order starting at any given point.

- When I create a polygon with a density of 0 (fixed), objects on top of it bounce up and down as if there is a problem with the surface. This is not the case with a polygon with density > 0.

Thanks


Top
 Profile  
 
PostPosted: Sat Dec 29, 2007 5:16 am 
Offline

Joined: Tue Sep 25, 2007 1:45 am
Posts: 131
Most applications use +y up, but flash uses +y down which is why the co-ordinates look clockwise.


Top
 Profile  
 
PostPosted: Sat Dec 29, 2007 11:16 am 
Offline
Site Admin

Joined: Thu Sep 06, 2007 12:34 am
Posts: 2931
Another way to state the requirement: the order must be CCW around the positive z-axis of the right-handed coordinate system.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group