From 893a4bf81d9db58ffd68782389625b2a893fcf90 Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Fri, 18 Feb 2011 03:41:00 +0000 Subject: Air Drag merged. --- src/tesseract/objects/PhysicalObject.java | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'src/tesseract/objects/PhysicalObject.java') diff --git a/src/tesseract/objects/PhysicalObject.java b/src/tesseract/objects/PhysicalObject.java index fa69e8a..cdfca54 100644 --- a/src/tesseract/objects/PhysicalObject.java +++ b/src/tesseract/objects/PhysicalObject.java @@ -66,12 +66,12 @@ public class PhysicalObject extends CollidableObject { shape.setCapability(Node.ALLOW_LOCAL_TO_VWORLD_READ); shape.setCapability(Node.ALLOW_LOCAL_TO_VWORLD_READ); - for (int i = 0; i < shape.numGeometries(); i++) { + /*for (int i = 0; i < shape.numGeometries(); i++) { shape.getGeometry(i).setCapability( GeometryArray.ALLOW_COUNT_READ); shape.getGeometry(i).setCapability( GeometryArray.ALLOW_COORDINATE_READ); - } + }*/ } } @@ -122,5 +122,21 @@ public class PhysicalObject extends CollidableObject { */ public void updateTranformGroup() { super.updateTransformGroup(); + } + + public Vector3f getVelocity() { + return this.velocity; + } + + public Vector3f getCenterOfMass() { + return this.centerOfMass; + } + + public boolean isCollidable() { + return collidable; + } + + public boolean isNodeNull() { + return this.node == null; } } \ No newline at end of file -- cgit v1.2.3