net.nexttext.behaviour.physics
Class PhysicsFactory

java.lang.Object
  extended by net.nexttext.behaviour.physics.PhysicsFactory

public class PhysicsFactory
extends java.lang.Object

The factory of Physics behaviours.


Constructor Summary
PhysicsFactory()
           
 
Method Summary
static AbstractBehaviour collide()
          Collide is a behaviour which performs collision response when TextObjects collide with each other
static AbstractBehaviour explode()
          Explode gives a one time velocity push to objects in a random direction.
static AbstractBehaviour follow()
           
static AbstractBehaviour move()
          Basic move.
static AbstractBehaviour stayInWindow(processing.core.PApplet p)
          Keeps objects inside the visible window, bouncing them off when they reach an edge.
static AbstractBehaviour throwable()
           
 java.lang.String toString()
          Returns a descriptive name for this factory.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PhysicsFactory

public PhysicsFactory()
Method Detail

collide

public static final AbstractBehaviour collide()
Collide is a behaviour which performs collision response when TextObjects collide with each other


stayInWindow

public static AbstractBehaviour stayInWindow(processing.core.PApplet p)
Keeps objects inside the visible window, bouncing them off when they reach an edge.


explode

public static final AbstractBehaviour explode()
Explode gives a one time velocity push to objects in a random direction.


move

public static final AbstractBehaviour move()
Basic move. Applies Velocity and Acceleration, changing the Position.


throwable

public static final AbstractBehaviour throwable()

follow

public static AbstractBehaviour follow()

toString

public java.lang.String toString()
Returns a descriptive name for this factory.

Overrides:
toString in class java.lang.Object