Skip to content

Instantly share code, notes, and snippets.

@byk0t
Last active December 24, 2015 07:19
Show Gist options
  • Save byk0t/6762961 to your computer and use it in GitHub Desktop.
Save byk0t/6762961 to your computer and use it in GitHub Desktop.
function PhysicsBody( aNode ) {
this.userData = aNode;
}
PhysicsBody.prototype.pbMethod = function () {};
function DynamicBody( aNode ) {
PhysicsBody.call( this, aNode );
}
// setting up the inheritance
DynamicBody.prototype = Object.create( PhysicsBody.prototype );
DynamicBody.prototype.dbMethod = function () {};
//var Shop = Shop || {};
//
//Shop.Cart = function(options) {
//
// //call parent constructor
// Shop.GlobalShopCart.call(this, options);
//
//};
//
////set up prototype
//Shop.Cart.prototype = Object.create( Shop.GlobalShopCart.prototype);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment