Skip to content

Instantly share code, notes, and snippets.

@mzgoddard
Created January 31, 2012 19:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mzgoddard/1712291 to your computer and use it in GitHub Desktop.
Save mzgoddard/1712291 to your computer and use it in GitHub Desktop.
DerbyBullet API
Factory bullet.factory
Factory bullet.nacl
Factory bullet.bump
World Factory.world()
World bullet.world() /* maps to bullet.factory.world */
Car World.addCar({position: vector3, rotation: quaternion})
World.step(timedelta, function())
Car.fireGun({position: vector3, direction: vector3, callback: function({hit: Car, position: vector3)})
Car.destroy()
vector3 Car.position
quaternion Car.orientation
Number Car.driveForce /* acceleration and deceleration */
Number Car.driveDirection
src/bullet.js
src/bullet.factory.js
src/bullet.bump.factory.js
src/bullet.bump.world.js
src/bullet.bump.car.js
src/bullet.nacl.factory.js
src/bullet.nacl.world.js
src/bullet.nacl.car.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment