physics3d
Class Shape
java.lang.Object
physics3d.Shape
public class Shape
- extends Object
Shape is a immutable class that describes the bounding area, and 3d shape of a GameObject
- Specification Fields :
bound
: PhysicsShape // the bounds of the shape, centered at the origin
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getBallShape
public static Shape getBallShape()
- Returns:
- the standard Ball's shape
getSqBumperShape
public static Shape getSqBumperShape()
- Returns:
- the standard SquareBumper's shape
getTriBumperShape
public static Shape getTriBumperShape()
- Returns:
- the standard TriangleBumper's shape
getCirBumperShape
public static Shape getCirBumperShape()
- Returns:
- the CircleBumper's standard shape
getAbsorberShape
public static Shape getAbsorberShape(int height,
int width,
int depth)
- Returns:
- the Shape of an Absorber
getFlipperShape
public static Shape getFlipperShape()
- Returns:
- the Shape of a Flipper
getWallShape
public static Shape getWallShape(int length,
int width)
- Returns:
- the Shape for a wall given length and width
getBound
public PhysicsShape getBound()
- Returns:
- the bound of this object
getParts
public List<PhysicsShape> getParts()
- Returns:
- the parts of this object