Guest User

Untitled

a guest
Mar 18th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. package com.chimpro.london.collisiondetection;
  2.  
  3. import org.lwjgl.util.vector.Vector3f;
  4.  
  5. import com.chimpro.london.entity.Entity;
  6.  
  7. public class AABB {
  8. public Vector3f min = new Vector3f(),max = new Vector3f();
  9. public AABB(Entity entity) {
  10. min = entity.getModel().getMin();
  11. max = entity.getModel().getMax();
  12. }
  13.  
  14. public Vector3f getMin() {
  15. return min;
  16. }
  17.  
  18. public Vector3f getMax() {
  19. return max;
  20. }
  21.  
  22. public boolean overlapps(AABB other) {
  23. return false;
  24. }
  25.  
  26. }
Add Comment
Please, Sign In to add comment