bug with constraints?

Hi

In blender 2.71, the cone twist constraint seems to ignore the setParam() function. In blender 2.74 this seems to be working.

However in blender 2.74 the rotation for the line hinge constraint seem to be ignored, but works as expected in blender 2.71.

Have I found a bug in two versions of blender? Or am I missing something?



import bge
from bge import logic
from bge import constraints

scene = bge.logic.getCurrentScene()

cont = bge.logic.getCurrentController()
own = cont.owner
obj = scene.objects

pid1 = obj['Torso'].getPhysicsId()
pid2 = obj['Bicep'].getPhysicsId()
pid3 = obj['Forearm'].getPhysicsId()

constraint1 = constraints.createConstraint(pid1,pid2,4,1.5,0.0,1.0,0.0,0.0,0.0)

constraint1.setParam(4,0.0,1.5)
constraint1.setParam(4,0.0,1.5)
constraint1.setParam(5,0.0,1.5)

constraint2 = constraints.createConstraint(pid2,pid3,2,1.5,0.0,0.0,
0.0,-1.0,0.0)

I have done the last constraint fixes. I also have done some tests with line hinge constraint and it worked like it should.
In the older versions the rotation was not set correctly. In Blender 2.74 the rotation (in degrees) is now correctly written.

constraint2 = constraints.createConstraint(pid2, pid3, 2, 1.5, 0.0, 0.0, 0.0, -90.0, 0.0)

Hey thanks HG1, I sorted out my rotations. I thought the angles were supposed to be set in radians.