diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2011-02-11 18:53:32 +0000 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net> | 2011-02-11 18:53:32 +0000 |
commit | 354041e8d61571b25c6eeb672537a013d3e0fa60 (patch) | |
tree | 0ddd07f6fa6867148e3e8c75155c10a238ccd42c /src/tesseract/forces/Force.java | |
parent | 39662ca98a4ea3de28d5ef4c113435d591ec471c (diff) |
Broke the grabbing code but added Alden's collision code. Not sure if its working yet since my Mac doesn't like it.
Diffstat (limited to 'src/tesseract/forces/Force.java')
-rw-r--r-- | src/tesseract/forces/Force.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tesseract/forces/Force.java b/src/tesseract/forces/Force.java index 60498a1..23a1195 100644 --- a/src/tesseract/forces/Force.java +++ b/src/tesseract/forces/Force.java @@ -2,7 +2,7 @@ package tesseract.forces; import javax.vecmath.Vector3f; -import tesseract.objects.Forceable; +import tesseract.objects.PhysicalObject; /** * Abstract Force class. @@ -16,14 +16,14 @@ public abstract class Force { * @param obj The given object. * @return A vector describing the force. */ - protected abstract Vector3f calculateForce(final Forceable obj); + protected abstract Vector3f calculateForce(final PhysicalObject obj); /** * Apply this force to the given object. * * @param obj The given object. */ - public void applyForceTo(final Forceable obj) { + public void applyForceTo(final PhysicalObject obj) { obj.addForce(calculateForce(obj)); } } |