physics3d
Class Collision

java.lang.Object
  extended by physics3d.Collision

public class Collision
extends Object


Constructor Summary
Collision(Ball b)
          initialise to a null collision
 
Method Summary
 Ball ball()
           
 GameObject object()
          get the object of the collision
 void set(double time, GameObject g, PhysicsShape shape)
          set properties of collision
 PhysicsShape shape()
           
 double time()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Collision

public Collision(Ball b)
initialise to a null collision

Method Detail

object

public GameObject object()
get the object of the collision


time

public double time()

shape

public PhysicsShape shape()

ball

public Ball ball()

set

public void set(double time,
                GameObject g,
                PhysicsShape shape)
set properties of collision


toString

public String toString()
Overrides:
toString in class Object