A couple of things I noticed is that some functions require passing a b2Vec2:
"local x, y = b2body:GetWorldPointXY ( b2Vec2, x, y )"
Is there a way to get the transformed point without passing a b2Vec2?
Actually, this is not really an issue however since you can keep a b2Vec2 buffer in Lua.
A couple of funcs are missing too although this is a minor gripe:
- Code: Select all
b2pulleyjoint:GetGroundAnchor1 ( )
b2pulleyjoint:GetGroundAnchor2 ( )
Lastly, are the"ContactResult" and "ContactPoint" objects (returned by the ContactListener) garbage collected?
I have a feeling that they don't need to be since:
1.You can't call ContactListener functions manually from Lua
2.You shouldn't store references to the returned structures
