SketchyPhysics 3x June 27 version.Moderator: CPhillips
96 posts
• Page 2 of 4 • 1, 2, 3, 4
Re: SketchyPhysics 3x June 27 version.It does not work for me
Please, register (free) to access all the attachments on the forums.
Re: SketchyPhysics 3x June 27 version.That's wierd, but it should be fixed now.
Re: SketchyPhysics 3x June 27 version.Thanks it worked now. I have to agree with Phy, AWESOME!!
![]()
Re: SketchyPhysics 3x June 27 version.Here is a script that makes a simple to use auto connecting joint. In the first frame. The "pin" object automatically connects to any "door"'s it is touching with a hinge and anything else with a fixed joint. What makes it really useful is it copyable.
Note I made the "pin" object very dense and no collide. It didn't work very well otherwise. Please, register (free) to access all the attachments on the forums.
Re: SketchyPhysics 3x June 27 version.Thanks for the tips Chris. Here's some movable, breakable objects (Kinda laggy, but fun
Please, register (free) to access all the attachments on the forums.
Re: SketchyPhysics 3x June 27 version.Well done I like it!
So, Chris, any new features we missed?
Re: SketchyPhysics 3x June 27 version.Took quite a while to code this right, and I can't get the faces to smooth, but here it is! Seamless cloth!!
![]() Please, register (free) to access all the attachments on the forums.
Re: SketchyPhysics 3x June 27 version.Um, CPillips how do you use the breakit command or is it a command. I don't mean the split command by the way. Wacov that's fantastic.
Have A Good Day!
Re: SketchyPhysics 3x June 27 version.I'm on a roll...
Turns out you CAN reset the simulation from within the script. Use this little chunk of code:
In the scripted field. I found this near the bottom of SketchyPhysicsTool.rb, it seems to work totally normally for me, but if there's a problem, there's not much I can do about it
Re: SketchyPhysics 3x June 27 version.That sounds cool! I can't try this though, it displays an error
By the way, is there a way to stop the simulation and save it as the model? I mean, you are running the simulation with a breakable box, the box is broken, can you copy the model and paste into other model? (Sorry, my English is hard to understand
Re: SketchyPhysics 3x June 27 version.It doesn't work for me ether wacov I get this error, taken from the ruby console:
and Javi just pause the simulation and save the model. Have A Good Day!
Re: SketchyPhysics 3x June 27 version.
Well, there is a lot that is still possible. I haven't seen anyone using teleport yet. Nor getVelocity/setVelocity, getTorque/setTourque or setLinearDamping/setAngularDamping. Any script connected joint can also be disconnected but I dont know a good example for that. Also the scripted code area will take tabs now. That makes it easier to write readable script.
Re: SketchyPhysics 3x June 27 version.
I am not sure that will work correctly in all cases. Ill try to add something official.
Re: SketchyPhysics 3x June 27 version.
Very impressive Wacov!
Re: SketchyPhysics 3x June 27 version.
"breakit" is an internal command called by "split". If you want to break an object into more than 2 pieces use this:
The "2" means split twice, so you'll get 4 pieces. If you use 3 you will get 16 pieces. 4=256. So dont go nuts. Also remember Sketchup will sometimes crash when you split. The more splits the more likely this is to happen.
Re: SketchyPhysics 3x June 27 version.I was going to do an example for split, but it turns out there are some more bugs with it. It wont work in "onstart" for example. use this instead:
Re: SketchyPhysics 3x June 27 version.Got cloth smoothing working, and made it easier to change the scripting (everything's in the floor). Chris, it seems if there's a script error in onend, objects fail to move back to their starting positions... and it can't be undone
Anyway, the updated cloth! Please, register (free) to access all the attachments on the forums.
Re: SketchyPhysics 3x June 27 version.
Thanks. I fixed it.
Re: SketchyPhysics 3x June 27 version.This script is inspired by a new model on 3dwarehouse that ran really smooth... once I turned off shadows and edges.
Paste this into one objects scripted field. It tries to speed up the rendering by disabling shadows and edges during the simulation. Don't worry if you dont understand it. It should be plug and play.
Please, register (free) to access all the attachments on the forums.
Re: SketchyPhysics 3x June 27 version.Thanks, that script will be really helpful
The bot... Love playing with it! By the way, how do you keep the breakable objects already broken? I mean, they are crashed and the simulation didn't start.
Re: SketchyPhysics 3x June 27 version.Uh... Chris... the Joystick commands don't work. I know you said it's all completely new, but that seems like a step backwards
You can bridge the gap using global variables, but that's the only way I can find... here's a demo: Please, register (free) to access all the attachments on the forums.
Re: SketchyPhysics 3x June 27 version.Um, Wacov is the file supposed to not work?
Okay it works now. Have A Good Day!
Re: SketchyPhysics 3x June 27 version.Okay, playing around with vectors (another toe in the API pond). Basically, I'm finding them, then changing their length with joystick inputs. I then use them to control the velocity of an object; in this case, the player in an FPS system; this works pretty sweet, so I'll continue to add features, and see where it takes me!
EDIT: Fixed. Tell me if it's not Please, register (free) to access all the attachments on the forums.
Last edited by Wacov on Tue Jul 07, 2009 7:49 pm, edited 2 times in total.
Re: SketchyPhysics 3x June 27 version.If you cut the script in box1, and run and reset the simulation, and then paste the script back into box1 it will work, I don't know why.
Have A Good Day!
Re: SketchyPhysics 3x June 27 version.Sketchyphysics isn't recognizing @@pos2 for some reason. To see for yourself open ruby console hit the play button.
Have A Good Day!
Re: SketchyPhysics 3x June 27 version.Thanks Phy! Since you pinpointed it, I found the problem. Seems it was trying to use @@pos2 before it had been created, I just had to add it into onstart and it worked fine!
Re: SketchyPhysics 3x June 27 version.there is an Error. double-clicking wont kick the object.
Re: SketchyPhysics 3x June 27 version.I removed double click = kick because it was seldom used and interfering with the new events.
SketchUcation One-Liner AdvertsAre you a Premium Member? Get your freebies here. Are you not> a Premium Member yet? Upgrade your account to grab these freebies instantly.
96 posts
• Page 2 of 4 • 1, 2, 3, 4
|