diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2011-02-16 05:53:20 +0000 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net> | 2011-02-16 05:53:20 +0000 |
commit | 0c31bb464e6a2ebe782b8dd6e18b36b366ee14f8 (patch) | |
tree | f7d5911bccc4469198476aeb1680bb20738f8eb9 /src/tesseract/objects/PhysicalObject.java | |
parent | de3419d287807586af47d5d9aa3377e2753b85ff (diff) |
Fixed translation. Added rotation by holding the alt key (rotation needs fixed though). Fixed rotation of the Icosahedron
Diffstat (limited to 'src/tesseract/objects/PhysicalObject.java')
-rw-r--r-- | src/tesseract/objects/PhysicalObject.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tesseract/objects/PhysicalObject.java b/src/tesseract/objects/PhysicalObject.java index 01fc5f7..fa69e8a 100644 --- a/src/tesseract/objects/PhysicalObject.java +++ b/src/tesseract/objects/PhysicalObject.java @@ -6,6 +6,7 @@ import javax.media.j3d.GeometryArray; import javax.media.j3d.Node; import javax.media.j3d.Shape3D; import javax.media.j3d.TransformGroup; +import javax.vecmath.Quat4f; import javax.vecmath.Vector3f; import alden.CollidableObject; @@ -99,6 +100,13 @@ public class PhysicalObject extends CollidableObject { public Vector3f getPosition() { return position; } + + /** + * @return The orientation of the object. + */ + public Quat4f getOrientation() { + return this.orientation; + } /** * When set to true, the object will ignore all updateState calls. |