3Dfelipe / jiglibflash

Automatically exported from code.google.com/p/jiglibflash
0 stars 0 forks source link

Constraints on Cube don't work as expected #23

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create a physics cuboid:
     var flipperBox:RigidBody = _physics.createCube(mat2, 100,25,30,5,5,5);
2. constrain one end of the cuboid to the ground:
     new JConstraintPoint(flipperBox,new Vector3D(80,-12.5,15),_ground,new Vector3D(0,0,0));
3. Apply force to the other end of the cuboid:
     flipperBox.addBodyTorque(new Vector3D(0,0,300000));

What is the expected output? What do you see instead?
I expect to see the cuboid rotate around the point of the constraint (the right 
end)
Instead no matter where the constraint is put the cuboid only rotates around 
the center

What version of the product are you using? On what operating system?
latest version in svn

Original issue reported on code.google.com by andygoes...@gmail.com on 12 Feb 2012 at 9:12