Hi horacebury,
i use PhysicsEditor for create a correct Gear,
the body definition its this:
[lua]
“engra1shape”] = {
{
pe_fixture_id = “”, density = 5000, friction = 0, bounce = 0,
filter = { categoryBits = 1000, maskBits = 10, groupIndex = 0 },
shape = { -5, 17.5 , 6, 17.5 , 6, 30.5 , -5, 30.5 }
}
,
{
pe_fixture_id = “”, density = 5000, friction = 0, bounce = 0,
filter = { categoryBits = 1000, maskBits = 10, groupIndex = 0 },
shape = { 18, -4.5 , 12, -13.5 , 23, -20.5 , 29, -11.5 }
}
,
{
pe_fixture_id = “”, density = 5000, friction = 0, bounce = 0,
filter = { categoryBits = 1000, maskBits = 10, groupIndex = 0 },
shape = { 13, 12.5 , 18, 4.5 , 29, 10.5 , 24, 19.5 }
}
,
{
pe_fixture_id = “”, density = 5000, friction = 0, bounce = 0,
filter = { categoryBits = 1000, maskBits = 10, groupIndex = 0 },
shape = { -24, -19.5 , -13, -13.5 , -18, -4.5 , -29, -10.5 }
}
,
{
pe_fixture_id = “”, density = 5000, friction = 0, bounce = 0,
filter = { categoryBits = 1000, maskBits = 10, groupIndex = 0 },
shape = { -18, 4.5 , -12, 13.5 , -23, 19.5 , -29, 11.5 }
}
,
{
pe_fixture_id = “”, density = 5000, friction = 0, bounce = 0,
filter = { categoryBits = 1000, maskBits = 10, groupIndex = 0 },
shape = { 6, -17.5 , -5, -16.5 , -5, -30.5 , 5, -30.5 }
}
,
{
pe_fixture_id = “”, density = 5000, friction = 0, bounce = 0,
filter = { categoryBits = 1000, maskBits = 10, groupIndex = 0 },
shape = { -5, -16.5 , 6, -17.5 , 12, -13.5 , -5, 17.5 , -12, 13.5 , -18, 4.5 , -18, -4.5 , -13, -13.5 }
}
,
{
pe_fixture_id = “”, density = 5000, friction = 0, bounce = 0,
filter = { categoryBits = 1000, maskBits = 10, groupIndex = 0 },
shape = { 13, 12.5 , 6, 17.5 , -5, 17.5 , 12, -13.5 , 18, -4.5 , 18, 4.5 }
}
}[/lua]
https://docs.google.com/file/d/0B-88Zk7c3DwlR3V4Z3RzbjNOTEU/edit?usp=sharing
There is the code, you can see only the main.lua code if you want.
It’s to bigger to post it.
Thanks you