lua.box2d.shape.aabb
xa,ya,xb,yb = shape:aabb()
Get shapes aabb as stream of numbers, lower bounds first then upper.
lua.box2d.shape.convert
x,y = shape:convert(x,y,conversion)
conversion must be one of the following strings indicating how the input x,y should be transformed into the output x,y
x,y = shape:convert(x,y,"closest")
convert x,y point in world space into x,y closest point on shape.
lua.box2d.shape.destroy
shape:destroy()
Destroy the shape and all sub objects (none)
lua.box2d.shape.get
vars = shape:get()
Get all shape variables in a table.
lua.box2d.shape.info
info = shape:info()
This returns the def table used to create the shape along with as much updated information as we have available, mostly intended as a debugging aid.
This is the actual def table (some values are hard to query later) so if you edit it or if you create this object using a non unique def table things can get strange.
lua.box2d.shape.set
shape:set(vars)
Set all shape variables from a table.