0

How can I get rotation from Tiled map object?

It's listed in the properties, but object.getProperties().get("rotation"); returns null and so does this: object.getProperties().get("Rotation");.

My first though was to cast the whole object into Rectangle object, but Rectangle doesn't keep rotation.

almightyGOSU
  • 3,731
  • 6
  • 31
  • 41
Vilda
  • 1,675
  • 1
  • 20
  • 50
  • try https://code.google.com/p/libgdx/issues/detail?id=787 – Mr. P May 22 '14 at 14:20
  • I've come across this post and the problem is, that I don't use tiles, I am using object and therefore, I can't get any texture from which I would get the rotation. – Vilda May 22 '14 at 14:22
  • 1
    LibGDX supports features in the release version of Tiled. Object rotation is not yet included in that feature set. – nEx.Software May 22 '14 at 14:23

0 Answers0