diff options
author | Steve <steveb9@u.washington.edu> | 2011-03-06 11:53:44 +0000 |
---|---|---|
committer | Steve <steveb9@u.washington.edu> | 2011-03-06 11:53:44 +0000 |
commit | 9ffaaac2d072edea8c4b1dfe84ad75d355d11baf (patch) | |
tree | 7657d2ea3d4d15dc6ed40c0de26cc4da370fac03 /src/tesseract/objects | |
parent | b7c1976666afc58cbdf5be7aa10cc975e3105fb4 (diff) |
Added method to in PObj to swithpositions when tranmitted
Added the new method in the world just before all call to transmit
Diffstat (limited to 'src/tesseract/objects')
-rw-r--r-- | src/tesseract/objects/PhysicalObject.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/tesseract/objects/PhysicalObject.java b/src/tesseract/objects/PhysicalObject.java index 4c19381..2497153 100644 --- a/src/tesseract/objects/PhysicalObject.java +++ b/src/tesseract/objects/PhysicalObject.java @@ -112,6 +112,17 @@ public class PhysicalObject extends CollidableObject { } /** + * Switches the position of the object before transmission. + */ + public void switchPosition() { + float x = position.getX(); + float z = position.getZ(); + + position.x = -x; + position.z = -z; + } + + /** * @return The orientation of the object. */ public Quat4f getOrientation() { |