SP Error: "Formula doesn't compile"
-
Hi, I'm an Italian newbie of SP.
I'm using a short guide to learn about this program, but I've encountered an error when I tried to put a controller name in a hinge.
The error is:
Formula doesn't compile:
"name I put in the box"
(eval):1:in "getBinding": undefined local variable or method 'name I put' for #MSketchyPhysis3::ControllerContext:0x9d434f8I tried with different type of group, hinge condition but the problem still remain.
And... There is a manual, in with is explained every feature and option of SP?
This is the first time I used a forum , and my english is very little... So please be clear.
-
The way controllers work in SP3 (the version of SketchyPhysics you're using) has changed since the last version, SP2 (which was used to write the tutorial you used). To give more flexibility, the controller field now accepts formulas, (i.e. math), combined with old-fashioned sliders.
To get the result you were expecting, use this formula in the controller field:
slider("name you want")
It must include the quotes ("), but the name can be anything.
As a little example of what you can do with formulas, try making a motor joint, and using this as the controller (note that motors cannot normally reverse):
0.5-slider("Motor")
Sorry, there's no official manual, but you can always ask here
Advertisement