It looks like you're new here. If you want to get involved, click one of these buttons!
totebo
Member
function getVars() return var_a, var_b end |
print( getVars()[2] ) |
local var_1, var_2 = getVars() print( var_2 ) |
Comments
should work, see here:
http://stackoverflow.com/questions/3165845/how-can-i-ignore-first-results-from-a-function-in-lua
Fragmenter - animated loop machine and IKONOMIKON - the memory game
To me it seems like the cleanest solution is to add a method that returns just one specific value;
Happy days.
@tkhnoman, that also works, but not without changing the Box2D interface unfortunately.