org.jbox2d.builders
Class BoxBuilder

java.lang.Object
  extended by org.jbox2d.builders.BodyBuilder<BoxBuilder,PolygonShape>
      extended by org.jbox2d.builders.BoxBuilder

public class BoxBuilder
extends BodyBuilder<BoxBuilder,PolygonShape>

Author:
eppleton

Field Summary
 
Fields inherited from class org.jbox2d.builders.BodyBuilder
bodyDef, fixtureDef, shape, world
 
Constructor Summary
BoxBuilder(World world)
           
 
Method Summary
 Body build()
           
 BoxBuilder halfHeight(float halfHeight)
           
 BoxBuilder halfWidth(float halfWidth)
           
 
Methods inherited from class org.jbox2d.builders.BodyBuilder
active, allowSleep, angle, angularDamping, angularVelocity, awake, bullet, density, fixedRotation, friction, gravityScale, linearDamping, position, position, restitution, sensor, type, userData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoxBuilder

public BoxBuilder(World world)
Method Detail

halfWidth

public BoxBuilder halfWidth(float halfWidth)

halfHeight

public BoxBuilder halfHeight(float halfHeight)

build

public Body build()
Overrides:
build in class BodyBuilder<BoxBuilder,PolygonShape>


Copyright © 2012. All Rights Reserved.