control features implemented

This commit is contained in:
logsol 2012-06-03 18:22:27 +02:00
parent 8d0ff1a929
commit c2b0baaea2
10 changed files with 213 additions and 63 deletions

View file

@ -1,6 +1,5 @@
Chuck.Physics.Engine = function () {
this._world;
this.init();
}
@ -17,9 +16,10 @@ Chuck.Physics.Engine.prototype.getWorld = function() {
return this._world;
}
Chuck.Physics.Engine.prototype.setCollisionDetector = function() {
var cd = new CollisionDetector();
this._world.SetContactListener(cd);
Chuck.Physics.Engine.prototype.setCollisionDetector = function(me) {
var cd = new Chuck.Collision.Detector(me);
var listener = cd.getListener();
this._world.SetContactListener(listener);
}
Chuck.Physics.Engine.prototype.setupDebugDraw = function() {