problem with Joint set-double-spring

Hi,

I can't get the set-double spring method to work. The error message says 'error in Joint trying to set spring for unititialised object'. But the joint is initialised and other methods work...

Also, how does the set-double-spring method apply to joints with multiple dof? Must all dof's use the same max-min limits?

As in the code below;

+ to init:
pi = (3.14159). e = 2.718281828.
hingeUni = new UniversalJoint. hingeUni set-strength-limit to (50).
hingeUni set-double-spring with-strength 50 with-max (0.2) with-min (-0.2).

This causes the above error. But set-strength works fine. Why? Any ideas?

Thanks,

Nick

try after the joint is attached

The wording of the error message is a bit misleading -- try calling the method after the joint is attached.

- jon

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.