SketchyPhysics3.1
-
setVelocity takes a vector that is the direction the object will be moving and the length of the vector is how fast. It is different from push because it actually sets the objects velocity rather than just try to push it.
setTorque does the same thing with the objects rotation.
I updated the script page on the wiki.
Example attached
-
Hey!
Thanks for fast answer, is it possible to "getTorque/velocity" to know if something is moving in any direction.
And get the speed of an object, if I will do a speed/RPM -meter?
/hpnisse -
Hi,
Just wondering if there was any news about the updated, "fixed", mac version?
I was looking around and I didn't see any new files
Thanks
-
@reddoor said:
Hi,
Just wondering if there was any news about the updated, "fixed", mac version?
I was looking around and I didn't see any new files
Thanks
Try:
http://forums.sketchucation.com/viewtopic.php?f=61&t=32200&p=284163#p284163 -
Yeah 3.2 should work on Mac. I'll do a zip file for it tonight.
-
Am I being stupid but could someone put a link directly to the latest MAC version of SP 3.1 or 3.2 what ever is latest. I often read the forums and see Mac version coming then the next posts are of people trying to get Mac version to work. However I never see the link or if there is one it takes you to a PC exe file.
Thanks in advance.
-
@unknownuser said:
Error Loading File sketchyphysics.rb
dlopen(/Library/Application Support/Google SketchUp 7/SketchUp/plugins/SketchyPhysics3/sdl/SDL.dylib, 9): no suitable image found. Did find:
/Library/Application Support/Google SketchUp 7/SketchUp/plugins/SketchyPhysics3/sdl/SDL.dylib: unknown required load command 0x80000022 -
@rovap said:
Am I being stupid but could someone put a link directly to the latest MAC version of SP 3.1 or 3.2 what ever is latest. I often read the forums and see Mac version coming then the next posts are of people trying to get Mac version to work. However I never see the link or if there is one it takes you to a PC exe file.
Thanks in advance.
Good question. I tried downloading SketchyPhysics3RC1-MacAndWin-Fixed.zip off the Wiki front page, but the newest files in there are dated March 26, 2009, so I figured that can't be right.
-
Sorry for the late reply. Mac will be supported in the next version. It was supposed to be out last week but I found some problems and havent had a chance to fix them. It should be in a few days.
-
@cphillips said:
Sorry for the late reply. Mac will be supported in the next version. It was supposed to be out last week but I found some problems and havent had a chance to fix them. It should be in a few days.
Coolness! Looking forward to it!
-
Guys
Could you please "STICK" this final version on the top of the forum?Thank you all very much.
Good work!
David.
-
where can i get tutorial for sketchyphysics...maybe a pdf file...??
-
@cphillips said:
Sorry for the late reply. Mac will be supported in the next version. It was supposed to be out last week but I found some problems and havent had a chance to fix them. It should be in a few days.
Any progress?
-
@cljohnston108 said:
@cphillips said:
Sorry for the late reply. Mac will be supported in the next version. It was supposed to be out last week but I found some problems and havent had a chance to fix them. It should be in a few days.
Any progress?
How 'bout now?
-
Sorry, I know I am late with the new version. I have been real busy.
I'll work on this week but no promises.
-
I downloaded the newest version of sketchy physics and installed it. I have sketchup pro 8. When sketch up starts i get the following message
Error Loading File sketchyphysics.rb
undefined methodextend_object' for
Singleton'then when i try to download and use a sketchy physics model from wharehouse, they dont work and i get the following message.
Error starting the simulation:uninitialized constant. msketchyphysics 3::SP3xSimulationContext::SP Sounds C:/PROGRA~1/google/GOOGLE~3/plugins/sketchyphysics3/controller commands. Rb:777:in 'initialize'
can anyone help me with how i sort this out?
Lucy
-
I have never seen that error before. Best guess something went wrong with the new Midi sound support. What version of windows are you using? Do you have any thing unusual about your sound setup?
-
Hi,
I get the exact same error as Loolytoo above. The only apparent difference is I am using Windows 7 Pro 64 bit and SU7. I have tried reinstalling SketchyPhysics. When I run a sample model, the Ruby console shows this;
Checking if dueForUpdate
String doesn't compile: uninitialized constant MSketchyPhysics3::SP3xSimulationContext::SPSounds#<NameError: uninitialized constant MSketchyPhysics3::SP3xSimulationContext::SPSounds>
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SketchyPhysics3/ControllerCommands.rb:777:ininitialize' C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SketchyPhysics3/sketchyphysicstool.rb:727:in
new'
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SketchyPhysics3/sketchyphysicstool.rb:727:ininitialize' C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SketchyPhysics3/sketchyphysicstool.rb:1623:in
new'
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SketchyPhysics3/sketchyphysicstool.rb:1623:instartphysics' C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SketchyPhysics3/sketchyphysicstool.rb:1650:in
physicsTogglePlay'
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SketchyPhysics3/sketchyphysicstool.rb:1738
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SketchyPhysics3/sketchyphysicstool.rb:1737:in `call'
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SKMtools/image_class.rb:946Had I made this model myself, I would say it is operator error, but that is not the case.
Could someone shed some light on how to either solve this or work around it so I could try my hand at using this plug-in?Thanks,
Andy
-
64 bit might be the problem. It looks like the scripts are not loading properly so the bug is probably happening before the error you submitted.
Try this:
Load Sketchup
Open the ruby console under the windows menu.
Then type this:load('sketchyphysics.rb')
It will probably print an error. If so send it to me and I can track it down.
Thanks
Chris -
Hi Chris,
I did as you suggested (I hope).
After disabling Sketchyphysics from the plug-in menu, restarting SU and entering the statement, I got this;
load('sketchyphysics.rb')
trueIf I then restart sketchyphysics from the plug-in menu, the console gives this;
C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/Images/hinge.png
C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/Images/slider.png
C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/Images/servo.png
C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/Images/piston.png
C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/Images/motor.png
C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/Images/gyro.png
C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/Images/fixed.png
createSelectionObserver
PhysicsObjectInspector initialized
C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins
C:/Program Files (x86)/Google/Google SketchUp 7/Tools
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/ruby
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/JimFoltz
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/Podium
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SuTool/rb/
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SuTool/ro/
loading scripts version:45
C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/midiator/lib/midiator/midiator
C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/midiator/lib/midiator/singleton.rb:124: warning: already initialized constant FirstInstanceCall
Error: #<NameError: undefined methodextend_object' for
Singleton'>
C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/midiator/lib/midiator/singleton.rb:166:inundef_method' C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/midiator/lib/midiator/singleton.rb:166 C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/midiator/lib/midiator/driver_registry.rb:17:in
require'
C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/midiator/lib/midiator/driver_registry.rb:17
C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/midiator/lib/midiator/midiator.rb:29:inrequire' C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/midiator/lib/midiator/midiator.rb:29 C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SketchyPhysics3/midi.rb:6:in
require'
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SketchyPhysics3/midi.rb:6
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/sketchyphysics.rb:33:inload' C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/sketchyphysics.rb:33:in
LoadSketchyPhysics3'
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/sketchyphysics.rb:61:indoLoad' C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/sketchyphysics.rb:43:in
setLoadVersion'
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/sketchyphysics.rb:93
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/sketchyphysics.rb:93:in `call'If I then load a model and try to run it, I get the error reported a couple of posts above "....777.." and the console gives this;
C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/Images/hinge.png
C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/Images/slider.png
C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/Images/servo.png
C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/Images/piston.png
C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/Images/motor.png
C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/Images/gyro.png
C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/Images/fixed.png
createSelectionObserver
PhysicsObjectInspector initialized
C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins
C:/Program Files (x86)/Google/Google SketchUp 7/Tools
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/ruby
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/JimFoltz
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/Podium
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SuTool/rb/
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SuTool/ro/
loading scripts version:45
C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/midiator/lib/midiator/midiator
C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/midiator/lib/midiator/singleton.rb:124: warning: already initialized constant FirstInstanceCall
Error: #<NameError: undefined methodextend_object' for
Singleton'>
C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/midiator/lib/midiator/singleton.rb:166:inundef_method' C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/midiator/lib/midiator/singleton.rb:166 C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/midiator/lib/midiator/driver_registry.rb:17:in
require'
C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/midiator/lib/midiator/driver_registry.rb:17
C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/midiator/lib/midiator/midiator.rb:29:inrequire' C:/Program Files (x86)/Google/Google SketchUp 7/plugins/SketchyPhysics3/midiator/lib/midiator/midiator.rb:29 C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SketchyPhysics3/midi.rb:6:in
require'
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SketchyPhysics3/midi.rb:6
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/sketchyphysics.rb:33:inload' C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/sketchyphysics.rb:33:in
LoadSketchyPhysics3'
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/sketchyphysics.rb:61:indoLoad' C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/sketchyphysics.rb:43:in
setLoadVersion'
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/sketchyphysics.rb:93
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/sketchyphysics.rb:93:incall' Error: #<NoMethodError: undefined method
[]' for nil:NilClass>
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SKMtools/image_class.rb:946:inonOpenModel' Error: #<NoMethodError: undefined method
[]' for nil:NilClass>
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SKMtools/image_class.rb:946:inonOpenModel' C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SKMtools/image_class.rb:946 open model#<Sketchup::Model:0x106577f0> createSelectionObserver PhysicsObjectInspector initialized Checking if dueForUpdate String doesn't compile: uninitialized constant MSketchyPhysics3::SP3xSimulationContext::SPSounds#<NameError: uninitialized constant MSketchyPhysics3::SP3xSimulationContext::SPSounds> C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SketchyPhysics3/ControllerCommands.rb:777:in
initialize'
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SketchyPhysics3/sketchyphysicstool.rb:727:innew' C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SketchyPhysics3/sketchyphysicstool.rb:727:in
initialize'
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SketchyPhysics3/sketchyphysicstool.rb:1623:innew' C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SketchyPhysics3/sketchyphysicstool.rb:1623:in
startphysics'
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SketchyPhysics3/sketchyphysicstool.rb:1650:inphysicsTogglePlay' C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SketchyPhysics3/sketchyphysicstool.rb:1738 C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SketchyPhysics3/sketchyphysicstool.rb:1737:in
call'
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/SKMtools/image_class.rb:946I'm not sure that will be much help, but thank you and let me know what you would like me to try next.
Andy
Advertisement