lib/Oimo.js
function(shape){
        if(!shape.parent || !shape.parent.parent){
            throw new Error("It is not possible to be added alone to shape world");
        }
        shape.proxy = this.broadPhase.createProxy(shape);
        shape.updateProxy();
        this.broadPhase.addProxy(shape.proxy);
    }
function(shape){
        if(!shape.parent || !shape.parent.parent){
            throw new Error("It is not possible to be added alone to shape world");
        }
        shape.proxy = this.broadPhase.createProxy(shape);
        shape.updateProxy();
        this.broadPhase.addProxy(shape.proxy);
    }
function ( shape ) { if ( ! shape . parent || ! shape . parent . parent ) { throw new Error ( "It is not possible to be added alone to shape world" ) ; } shape . proxy = this . broadPhase . createProxy ( shape ) ; shape . updateProxy ( ) ; this . broadPhase . addProxy ( shape . proxy ) ; }
I'll add a shape to the world..
Add to the rigid world, and if you add a shape to a rigid body that has been added to the world,
Shape will be added to the world automatically, please do not call from outside this method.
@param  shape  Shape you want to add
I ll add a shape to the world .. Add to the rigid world and if you add a shape to a rigid body that has been added to the world Shape will be added to the world automatically please do not call from outside this method .