kripken/ammo.js — Issue #14: Constructors.
Author: schteppe
Created: 2011-10-14 13:47:13+00:00
State: open

I was just wondering, is it possible to use other constructors of Bullet classes than the first?

For example, the btHingeConstraint. It's got four constructors:

new Ammo.btHingeConstraint (rbA, rbB, pivotInA, pivotInB, axisInA, axisInB, useReferenceFrameA)
new Ammo.btHingeConstraint (rbA, pivotInA, axisInA, useReferenceFrameA)
new Ammo.btHingeConstraint (rbA, rbB, rbAFrame, rbBFrame, useReferenceFrameA)
new Ammo.btHingeConstraint (rbA, rbAFrame, useReferenceFrameA)

(See http://www.bulletphysics.com/Bullet/BulletFull/classbtHingeConstraint.html for full doc.)

The first constructor seems to work (see the [ragdoll demo](http://granular.cs.umu.se/ammo/Demos/RagdollDemo/three.html)), but nothing happens when I try any other constructor. Did I miss something obvious here?