OSDN Git Service

Fixed javadoc for some methods (#982).
authoraspic <kjetil861@gmail.com>
Tue, 25 Sep 2012 23:08:47 +0000 (01:08 +0200)
committeraspic <kjetil861@gmail.com>
Tue, 25 Sep 2012 23:08:47 +0000 (01:08 +0200)
gdx/src/com/badlogic/gdx/physics/box2d/Body.java

index ed3c7be..d4a499d 100644 (file)
@@ -176,8 +176,9 @@ public class Body {
                body->SetTransform(b2Vec2(positionX, positionY), angle, updateContacts);\r
        */\r
 \r
-       /** Get the body transform for the body's origin. */\r
        private final Transform transform = new Transform();\r
+       \r
+       /** Get the body transform for the body's origin. */\r
        public Transform getTransform () {\r
                jniGetTransform(addr, transform.vals);\r
                return transform;\r
@@ -221,9 +222,9 @@ public class Body {
                return body->GetAngle();\r
        */\r
 \r
-       /** Get the world position of the center of mass. */\r
        private final Vector2 worldCenter = new Vector2();\r
-\r
+       \r
+       /** Get the world position of the center of mass. */\r
        public Vector2 getWorldCenter () {\r
                jniGetWorldCenter(addr, tmp);\r
                worldCenter.x = tmp[0];\r
@@ -238,9 +239,9 @@ public class Body {
                worldCenter[1] = w.y;\r
        */\r
 \r
-       /** Get the local position of the center of mass. */\r
        private final Vector2 localCenter = new Vector2();\r
-\r
+       \r
+       /** Get the local position of the center of mass. */\r
        public Vector2 getLocalCenter () {\r
                jniGetLocalCenter(addr, tmp);\r
                localCenter.x = tmp[0];\r
@@ -270,9 +271,9 @@ public class Body {
                body->SetLinearVelocity(b2Vec2(x, y));\r
        */\r
 \r
-       /** Get the linear velocity of the center of mass. */\r
        private final Vector2 linearVelocity = new Vector2();\r
-\r
+       \r
+       /** Get the linear velocity of the center of mass. */\r
        public Vector2 getLinearVelocity () {\r
                jniGetLinearVelocity(addr, tmp);\r
                linearVelocity.x = tmp[0];\r