Physijs icon indicating copy to clipboard operation
Physijs copied to clipboard

constraints - physijs worker error

Open tankelton opened this issue 10 years ago • 1 comments

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

tankelton avatar Dec 09 '14 15:12 tankelton

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.

jaredmoore avatar Dec 12 '14 15:12 jaredmoore