sketchucation logo sketchucation
    • Login
    โ„น๏ธ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    SketchyPhysics3.1

    Scheduled Pinned Locked Moved SketchyPhysics
    85 Posts 37 Posters 68.0k Views 37 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Offline
      jblively
      last edited by

      @cphillips said:

      Here are some older examples that now work in this official release version.

      http://forums.sketchucation.com/viewtopic.php?f=61&t=20209&start=0#p168251
      http://forums.sketchucation.com/viewtopic.php?f=61&t=20209&start=0#p168253
      http://forums.sketchucation.com/viewtopic.php?f=61&t=20209&start=0#p168254
      http://forums.sketchucation.com/viewtopic.php?f=61&t=20209&start=0#p168265

      On the self Connecting Joints Example, can you add a name of a slider in there, so there can be a way to control the joints via the control panel?

      ontouch{|t,s,p|
      connect(t,"servo")
      ontouch{}
      }

      I didn't see it in this Definition: connect(child,type="ball",min=0,max=0,accel=0,damp=0,breakingForce=0)

      I'll never draw another dang joint again if this works ๐Ÿ˜‰

      1 Reply Last reply Reply Quote 0
      • M Offline
        Mr.K.1
        last edited by

        @hobbnob said:

        How do we go about using the sound function? I tried using the playSound script but it didn't work.

        Here's the file, please tell me what's wrong.

        It seem you didn't embed the sound, which this function needs because it doesn't play it directly from file, but from embedded sound data.
        What you do is go to Plugins -> SketchyPhysics -> Sound, and it should open up a simple UI to add/embed sound, and later on don't forget to save your model so the data get's saved with it.

        1 Reply Last reply Reply Quote 0
        • C Offline
          CPhillips
          last edited by

          Turns out the break example will bugsplat SU8. I have a fix but I am going to wait and see if there are any other issues before I release a new version.

          1 Reply Last reply Reply Quote 0
          • C Offline
            CPhillips
            last edited by

            @jblively said:

            On the self Connecting Joints Example, can you add a name of a slider in there, so there can be a way to control the joints via the control panel?

            ontouch{|t,s,p|
            connect(t,"servo")
            ontouch{}
            }

            I didn't see it in this Definition: connect(child,type="ball",min=0,max=0,accel=0,damp=0,breakingForce=0)

            I'll never draw another dang joint again if this works ๐Ÿ˜‰

            Thats a bit harder than it sounds. But I will look into it.

            1 Reply Last reply Reply Quote 0
            • C Offline
              CPhillips
              last edited by

              @cphillips said:

              @jblively said:

              I'll never draw another dang joint again if this works ๐Ÿ˜‰

              Thats a bit harder than it sounds. But I will look into it.

              Ah! Turns out to be easier than I thought. This will work in next version:

              
              !!!Example only. Will not work in Sept 27 version!!!
              ontouch{|t,s,p|
                 @jnt=connect(t,"servo",0,90)
                 ontouch{}
              }
              ontick{
                 if @jnt!=nil
                    @jnt.controllerValue=slider("position")
                 end
              }
              
              
              
              1 Reply Last reply Reply Quote 0
              • C Offline
                CPhillips
                last edited by

                Updated the scripting reference. Not done yet, but more usable now.

                Link Preview Image
                Google Code Archive - Long-term storage for Google Code Project Hosting.

                favicon

                (code.google.com)

                1 Reply Last reply Reply Quote 0
                • H Offline
                  hobbnob
                  last edited by

                  Well on the whole this is a very much improved release, K's advice for embedding sounds worked fine and I've also tried out the destroy function, very useful for so many things.

                  My WIP Thread:Here

                  1 Reply Last reply Reply Quote 0
                  • J Offline
                    jblively
                    last edited by

                    @cphillips said:

                    Ah! Turns out to be easier than I thought. This will work in next version:

                    Excellent!!!!!

                    Can't Wait ๐Ÿ˜„

                    1 Reply Last reply Reply Quote 0
                    • J Offline
                      jblively
                      last edited by

                      @cphillips said:

                      Updated the scripting reference. Not done yet, but more usable now.

                      Link Preview Image
                      Google Code Archive - Long-term storage for Google Code Project Hosting.

                      favicon

                      (code.google.com)

                      WOW!

                      I know how it's not fun to doc (i've done my share) but I know we all will really appreciate this new format. Very readable and usable! Great Job!

                      1 Reply Last reply Reply Quote 0
                      • C Offline
                        CPhillips
                        last edited by

                        Version delayed while I deal with a family issue.

                        1 Reply Last reply Reply Quote 0
                        • D Offline
                          Davidfi1
                          last edited by

                          Wonderful Work !!!
                          Thank you.

                          the http://forums.sketchucation.com/viewtopic.php?f=61&t=24201#p206890 bug is not fixed yet but it is not that interesting

                          1 Reply Last reply Reply Quote 0
                          • C Offline
                            CPhillips
                            last edited by

                            New version is up here:
                            http://code.google.com/p/sketchyphysics/downloads/list

                            Changes:
                            http://code.google.com/p/sketchyphysics/wiki/SP31Oct7

                            Once a few people verify it works I'll turn on the auto update feature.

                            Update:
                            I have enabled the autoupdate. Hopefully it works. Some of the first few people who downloaded may have to update again as I forgot to change the version.

                            1 Reply Last reply Reply Quote 0
                            • P Offline
                              phy
                              last edited by

                              @cphillips said:

                              Update:
                              I have enabled the autoupdate. Hopefully it works. Some of the first few people who downloaded may have to update again as I forgot to change the version.

                              The auto update worked great.

                              Tableau de comparaison de Staxyn s'agit d'un mะ“ยฉdicament uniquement sur ordonnance.

                              1 Reply Last reply Reply Quote 0
                              • J Offline
                                jblively
                                last edited by

                                @cphillips said:

                                I have enabled the autoupdate. Hopefully it works.

                                Auto update works like a charm.

                                I have having a bit of troubles with the auto connecting Joints and the Slider. I can get the slider to show up, but I can't get it to react to the slide when I move it. I'm using a motor joint, maybe that's the issue?

                                I've attached a very simple sample, can you see what I might be doing wrong?

                                Here is the joint code I am using:

                                ontouch{|t,s,p|
                                @jnt=connect(t,"motor",0,0,1,0.5)
                                ontouch{}
                                }
                                ontick{
                                if @jnt!=nil
                                @jnt.controllerValue=slider("motor",0)
                                end
                                }

                                Thanks,

                                Joe


                                gears2.skp

                                1 Reply Last reply Reply Quote 0
                                • C Offline
                                  CPhillips
                                  last edited by

                                  Ah, i forgot about the motor joint. Ill fix in next version.

                                  1 Reply Last reply Reply Quote 0
                                  • J Offline
                                    jblively
                                    last edited by

                                    @cphillips said:

                                    Ah, i forgot about the motor joint. Ill fix in next version.

                                    Thanks! Thought I was going a little crazy!

                                    1 Reply Last reply Reply Quote 0
                                    • R Offline
                                      reddoor
                                      last edited by

                                      Hi,

                                      Just having a little trouble loading this new version on Sketchup 8 Macintosh 10.5.8

                                      I get this error on startup:

                                      Error Loading File sketchyphysics.rb
                                      dlopen(/Library/Application Support/Google SketchUp 8/SketchUp/plugins/SketchyPhysics3/sdl/SDL.dylib, 9): no suitable image found. Did find:
                                      /Library/Application Support/Google SketchUp 8/SketchUp/plugins/SketchyPhysics3/sdl/SDL.dylib: unknown required load command 0x80000022

                                      Any suggestions?

                                      Thanks

                                      1 Reply Last reply Reply Quote 0
                                      • S Offline
                                        shareck
                                        last edited by

                                        Hi. Can somebody tell me how to use the camera function? is it possible to achieve the same thing as with the lazy script where you have a box with a camera "attached" to its centre?

                                        1 Reply Last reply Reply Quote 0
                                        • W Offline
                                          willeykj
                                          last edited by

                                          @reddoor said:

                                          Hi,

                                          Just having a little trouble loading this new version on Sketchup 8 Macintosh 10.5.8

                                          I get this error on startup:

                                          Error Loading File sketchyphysics.rb
                                          dlopen(/Library/Application Support/Google SketchUp 8/SketchUp/plugins/SketchyPhysics3/sdl/SDL.dylib, 9): no suitable image found. Did find:
                                          /Library/Application Support/Google SketchUp 8/SketchUp/plugins/SketchyPhysics3/sdl/SDL.dylib: unknown required load command 0x80000022

                                          Any suggestions?

                                          Thanks

                                          I'm the developer of the Mac Port of SP3. Are you running on a Mac or a Hackintosh? Which CPU (has to be INTEL).

                                          This may be a case of the build being unique to 10.6 but I'm trying to dig in.

                                          Kevin

                                          1 Reply Last reply Reply Quote 0
                                          • W Offline
                                            willeykj
                                            last edited by

                                            @willeykj said:

                                            @reddoor said:

                                            Hi,

                                            Just having a little trouble loading this new version on Sketchup 8 Macintosh 10.5.8

                                            I get this error on startup:

                                            Error Loading File sketchyphysics.rb
                                            dlopen(/Library/Application Support/Google SketchUp 8/SketchUp/plugins/SketchyPhysics3/sdl/SDL.dylib, 9): no suitable image found. Did find:
                                            /Library/Application Support/Google SketchUp 8/SketchUp/plugins/SketchyPhysics3/sdl/SDL.dylib: unknown required load command 0x80000022

                                            Any suggestions?

                                            Thanks

                                            I'm the developer of the Mac Port of SP3. Are you running on a Mac or a Hackintosh? Which CPU (has to be INTEL).

                                            This may be a case of the build being unique to 10.6 but I'm trying to dig in.

                                            Kevin

                                            Just got done working with Chris.
                                            The Mac port requires shared libraries for SDL to work just like the PC version.
                                            The libraries I generated for Chris last week had unintended linkages to a version of SDL I had installed on my machine.
                                            Therefore, if you didn't have SDL installed the libraries in the SketchyPhysics directory didn't work which was the cause of Reddoor's error.

                                            SP 3.1 uses the standard SDL library as well as the SDL_mixer extension for audio. On the PC these are 2 separate shared libraries. On the Mac, it didn't seem to make sense to have SDL_mixer statically linked to the complete SDL library if the SDL shared library was going to be needed anyway. All complicated by the fact that the SP3.1 plugin folder isn't a library load directory. SOOOO.....

                                            I've compiled a new "SDL_Special.dylib" which has the necessary object code from SDL and SDL_mixer merged. This file is undergoing testing as I type and everything looks good so far. I hope to deliver to Chris later tonight and we'll get past this hiccup with the Mac version

                                            Thanks for your patience.

                                            Kevin

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 2 / 5
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement