diff options
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/CollidableObject.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common/CollidableObject.java b/src/common/CollidableObject.java index 0549335..2174e15 100644 --- a/src/common/CollidableObject.java +++ b/src/common/CollidableObject.java @@ -15,6 +15,7 @@ import com.sun.j3d.utils.geometry.Primitive; public abstract class CollidableObject implements Serializable {
private static final long serialVersionUID = 3667108226485766929L;
protected float inverseMass;
+ protected boolean detachMe = false;
// The center of mass in the local coordinate system
protected Vector3f centerOfMass;
protected Vector3f position, previousPosition;
@@ -110,6 +111,7 @@ public abstract class CollidableObject implements Serializable { public void detach() {
BG.detach();
+ detachMe = true;
}
public void updateState(float duration) {
@@ -596,4 +598,9 @@ public abstract class CollidableObject implements Serializable { }
return appearance;
}
+
+ public boolean removeMe() {
+ // TODO Auto-generated method stub
+ return detachMe;
+ }
}
|