SketchyPhysics 4?
-
I am having problems too. I tried to copy your code, this one:
#At sim start hide the object setEvent("onstart"){hidden=true} #When an object touches me... setEvent("ontouch"){|toucher| #if the object that touched me is named "box if toucher.name=="box" #unhide and become solid hidden=false nocollision=false end } #unhide group at end of sim setEvent("onend"){hidden=false}
in the Scripter field, when I hit "play" I can't do anything with the box that has the script. When I hit "reset" it displays an error.
-
CPhillips does not have "$curEvalGroup" quite embedded yet. At one point I got this working but I can't right now.
-
There is another problem with it also. It is vastly slower than the current version. So slow that I reverted back...
-
I haven't had that much trouble with it being slow it acts just like the previous one.
-
I think I had the idea before but I am not sure. The hard part was the plumbing around it.
$curEvalGroup isnt used anymore. Instead just use "group".
The code in the old scripting thread is obsolete. Here is almost the same thing:
onstart{ group.hidden=true @unhideAtEnd=true solid=false } ontouch{|toucher,speed,pos| if(toucher.name=="sphere") group.hidden=false solid=true end }
I dont know any reason this version would be slower than the last.
-
Chris, shouldn't the scripting window have error checking? It lets me stick any old junk into it, tries to run it, and breaks the model forever. Basically, it's trial and error, making a new model every time my code's wrong
-
It will eventually. Right now this is just a work in progress release.
Unless you get into a loop you should be able to reset and get back to the start no matter what errors.
If you do find a piece of script that permanently breaks a model post it here.
-
Ah, I think I see the problem with bad scripts "breaking" the model. I'll fix it.
Hitting reset or a bunch of undo's might allow you to get back to start.
-
Well, when it comes to big models where a line-less and shaded-only style has to be used, it is terrible compared to the current. I know for sure because I was playing with a fast battleship game, which slowed down to about a frame PER second once I downloaded the latest version.
-
Thanks Chris
It happens with anything except perfect scriptI don't have the slowdown problem, that's wierd...
-
I'll try again.
-
If you open the ruby console it will print performance statistics after each run. If you find a model that is much slower post a link and I'll take a looks.
-
I've downloaded the June 25 version and I noticed a little "error". When you hit the press button there's a quote ( " ) in the SketchyPhysics Control Panel
-
Thanks. I fixed it.
-
Hello, when will the new version? which works in the SU Make 2013?
Advertisement