Physijs
Physijs copied to clipboard
constraints - physijs worker error
Im just getting started with physijs, and trying to add a point constraint to my scene and as far as i can tell, i have set it up like in the wiki var constraint = new Physijs.PointConstraint(bat, ground, new THREE.Vector3(0,0,0)); scene.addConstraint(constraint);
but i get undefined is not a function from physijs worker line 1346, offset_body = constraint.getRigidBodyA();
both objects are physijs box mesh, both use physijs.createMaterial and both have been added to the scene, before i call scene.addConstraint
thanks for any help
I've gotten the same error recently. For now, my solution was to add a cylinder to my box as a child. In my case this works, though I'm not sure if it would be a feasible workaround for you.