Hello everyone,
I'm new here and this is my first post. I'm new to Gideros and Lua too. My question is, I couldn't manage to get the x component of b2.body's position. I tried body:getPosition(), it gives something like this (x, y), I also tried body:getPosition():x, body:getPosition:getX(), none of them worked. Thanks in advance.
Comments
did you also try body:getX() instead of body:getPosition():getX() ?
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
it is the only on way to get the x and y value from physics body