Has anyone used PhysicsEditor already? The sample code from the
generated physicsdata (lua) file does not work:
-- Usage example:
require "box2d"
local world = b2.World.new(0, 9.8)
local body = world:createBody{type = b2.DYNAMIC_BODY}
local scaleFactor = 1.0
local physics = (loadfile "PhysicsData.lua")().physicsData(scaleFactor)
physics:addFixture(body, object name)
I try to add some physics to a complex irregular bottom floor.
Can anyone recommend me a tutorial/help link/code snippet to implement
this? I could not find much in the Wiki and Academy.
Regards,
Marc
Comments
a little bit fragmented. There are so many links.
Regards,
Marc
http://www.codeandweb.com/blog/2012/05/07/physicseditor-gideros
by the way I am reworking Gideros Tutorials to be hopefully 100x better and all inclusive, but it won't be ready for a little while.
Likes: gorkem
This code works great and it's much more simple to implement
as I expected. Thanks again.
Regards,
Marc
Likes: avo