Created
January 31, 2012 19:17
-
-
Save mzgoddard/1712291 to your computer and use it in GitHub Desktop.
DerbyBullet API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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