What's the difference between .Pos[1] and Base.r[1]-Target.r[1]?

Good morning,

I am trying to build a class_template for CreateSpringForce, but now I have one problem. Could you tell me what's the difference between .lin.Pos[1] and Base.r[1]-Target.r[1]? There are always some differences between these two values. Even I use the same base and target nodes to build AnyKinLinear lin.


CreateAnySpringForce6DOF.any (1.9 KB)
CreateSpringForce6DOF.any (2.0 KB)

Thank you!

Best,
TJ

Hi @Taejun

The AnyKinLinear have a Ref parameter which controls in which reference system to measure in. By default it is set to -1 which is global coordinates.

A little hint to learn about the classes is to place your cursor at the classname in the script and press F1 - that should take you to the anyscript documentation of that class.
Here you can learn about the different settings and parameters of each class.

Best regards,
Bjørn

I get it. You help me a lot. Thanks!

This topic was automatically closed 125 days after the last reply. New replies are no longer allowed.