mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
control features implemented
This commit is contained in:
parent
8d0ff1a929
commit
c2b0baaea2
10 changed files with 213 additions and 63 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue