physics
Class BoxShell

java.lang.Object
  extended by physics.Shell
      extended by physics.BoxShell

public class BoxShell
extends Shell


Field Summary
 
Fields inherited from class physics.Shell
pos
 
Constructor Summary
BoxShell(ReadableVector3f pos, float length, float height)
           
 
Method Summary
 boolean contains(ReadableVector3f v)
           
 void draw()
           
 GameMath.MapDir getDirection(ReadableVector3f p)
           
 float getHeight()
           
 float getLength()
           
 Vector3f intersects(Shell shell)
           
 Vector3f testCollision(ReadableVector3f v1, ReadableVector3f v2)
           
 
Methods inherited from class physics.Shell
getPos
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoxShell

public BoxShell(ReadableVector3f pos,
                float length,
                float height)
Method Detail

getLength

public float getLength()

getHeight

public float getHeight()

testCollision

public Vector3f testCollision(ReadableVector3f v1,
                              ReadableVector3f v2)
Specified by:
testCollision in class Shell

contains

public boolean contains(ReadableVector3f v)

intersects

public Vector3f intersects(Shell shell)
Specified by:
intersects in class Shell

getDirection

public GameMath.MapDir getDirection(ReadableVector3f p)

draw

public void draw()
Overrides:
draw in class Shell