summaryrefslogtreecommitdiff
path: root/src/tesseract/objects/PhysicalObject.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/tesseract/objects/PhysicalObject.java')
-rw-r--r--src/tesseract/objects/PhysicalObject.java8
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.