title: Inherit parent constructor arguments
body: <p>I'm browsing the discussion for a similar topic, but can't find my situation...</p>
  
  <p>Am trying call parent constructors with parameters... can't seem to get it right.</p>
  
  <p>I have a <code>PhysicsBody</code> superclass that takes <code>aNode</code> as its only constructor argument:</p>
  
  <pre><code>function PhysicsBody(aNode) {
      this.userData = aNode;
      // ...
  }
  </code></pre>
  
  <p>Of this <code>PhysicsBody</code> inherits a <code>DynamicBody</code> class. Is constructor also takes <code>aNode</code> as only argument... Like I would do it in Java, I'd love to call something equivalent to <code>"super(aNode");</code> Can't seem to find out how.</p>
  
  <p>Here's the <code>DynamicBody</code> class:</p>
  
  <pre><code>// Wanted to give "new PhysicsBody(this, aNode)", but that fails!
  DynamicBody.prototype = new PhysicsBody();
  DynamicBody.prototype.constructor=DynamicBody;
  
  function DynamicBody(aNode) {
  
      // calling the parent constructor fails too:
      // PhysicsBody.prototype.constructor.call(this, aNode);
      //...
  }
  </code></pre>