local woodDensity = 2.0
local vPlankShape = { -6,-48, 6,-48, 6,48, -6,48 }
local hPlankShape = { -48,-6, 48,-6, 48,6, -48,6 }
local stoneDensity = 5.0
local vSlabShape = { -12,-26, 12,-26, 12,26, -12,26 }
local tombDensity = 5.5
local tombShape = { -18,-21, 18,-21, 18,21, -18,21 }
local monsterDensity = 1.0
local monsterShape = { -12,-13, 12,-13, 12,13, -12,13 } [import]uid: 19768 topic_id: 6215 reply_id: 306215[/import]
I’ve worked out that the v and h in front of PlankShape mean vertical and horizontal. What do the numbers mean? Width and height? And if so, why are there two sets of the numbers, and not just one? Thanks for helping. [import]uid: 19768 topic_id: 6215 reply_id: 21336[/import]
Also, if those are the sizes of the objects, then how do I go about finding that information out for my images? Thanks again. [import]uid: 19768 topic_id: 6215 reply_id: 21337[/import]
First off, you should have specified where that code comes from. At first glance I was pretty confused. However once I noticed it was referring to tombs, slabs, and monsters I’m guessing that’s from the Ghosts vs. Monsters sample.
It looks like these are parameters used for setting up the physics. Refer here:
http://developer.anscamobile.com/content/game-edition-physics-bodies#Polygon_bodies [import]uid: 12108 topic_id: 6215 reply_id: 21424[/import]
Oh ok. So those are the collision detector points. That makes a ton of sense. Thanks Jhocking. One last thing, how do I go about finding that information out? [import]uid: 19768 topic_id: 6215 reply_id: 21526[/import]
Read the docs. As in, go to Resources, click Docs, then read all of them. [import]uid: 12108 topic_id: 6215 reply_id: 21530[/import]
and the APIs. all of them 
http://developer.anscamobile.com/resources/apis/
[import]uid: 6645 topic_id: 6215 reply_id: 21618[/import]