Complex body construction

Hi, this is probably one for the Ansca dudes,

Has anyone had good progress in creating complex bodies with the physics engine? I’m finding that while creating complex images using display groups is easy (because of features like yReference and .rotation) having to then calculate all the same values for a collision shape is proving time consuming and, er, more complex than it feels it should be.

Also, is it true the physics engine can only handle 8 points per collision object? There are (many) other implementations of Box2D which do not have such a limit.

Thanks guys,

Matt. [import]uid: 8271 topic_id: 3160 reply_id: 303160[/import]

[lua]I’m finding that while creating complex images using display groups is easy (because of features like yReference and .rotation) having to then calculate all the same values for a collision shape is proving time consuming and, er, more complex than it feels it should be.[/lua]
There is a sample for complex object construction in the Engine’s document, but they do not attach the sample image for us.

[lua]is it true the physics engine can only handle 8 points per collision object? [/lua]
Btw, where did you read about this limitation [import]uid: 9190 topic_id: 3160 reply_id: 9274[/import]

Yes, I’ve (re-)read the complex construction section but am having troubles in building a circular object. Primarily because it seems odd to make rotation etc so easy, but then having to construct the physical boundary object “manually”.

Right now, I’m trying to build, basically, a cog - which I think would be a circle and attached squares, for teeth. However, having to create a collision shape for each tooth is problematic, even though creating the cog itself is very easy (whether using images or polygons.)

The limit on collision objects is here: http://developer.anscamobile.com/content/game-edition-physics-bodies#Polygon_bodies
Third paragraph:[blockcode]The maximum number of points (and therefore edges) allowed per collision shape is eight. Once defined, a shape definition can be re-used multiple times.[/blockcode] [import]uid: 8271 topic_id: 3160 reply_id: 9281[/import]