Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
How to get only the x component of a b2.body's position? — Gideros Forum

How to get only the x component of a b2.body's position?

zehrekenzehreken Member
edited November 2012 in General questions
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.

Likes: kontinyu

+1 -1 (+1 / -0 )Share on Facebook

Comments

Sign In or Register to comment.