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/alden/CollisionInfo.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/alden/CollisionInfo.java')
-rw-r--r-- | src/alden/CollisionInfo.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/alden/CollisionInfo.java b/src/alden/CollisionInfo.java new file mode 100644 index 0000000..9cefcd0 --- /dev/null +++ b/src/alden/CollisionInfo.java @@ -0,0 +1,15 @@ +package alden;
+import javax.vecmath.*;
+
+@SuppressWarnings("restriction")
+public class CollisionInfo {
+ public Vector3f contactPoint;
+ public Vector3f contactNormal;
+ public float penetration;
+
+ public CollisionInfo(Vector3f contactPoint, Vector3f contactNormal, float penetration) {
+ this.contactPoint = contactPoint;
+ this.contactNormal = contactNormal;
+ this.penetration = penetration;
+ }
+}
\ No newline at end of file |