sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Best SketchyPhysics Setup?

    Scheduled Pinned Locked Moved SketchyPhysics
    8 Posts 3 Posters 2.5k Views 3 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.
    • ashscottA Offline
      ashscott
      last edited by

      Is this the best sketchyphysics setup?

      http://t3.gstatic.com/images?q=tbn;ANd9GcQ3Bk8caduQQ3U55m6FuXqdbu5qmhoFunqx1hsRO4q81eSwpCeTcw

      I've been trolling the web far and wide to learn more about sketchyphysics and haven't seen anything like this but it seems amazing - it has automated walk functions so you press forward on the joystick and the machine places its own feet.....and the way the ruby is written seems totally contrary to any other models or the recommendations in the SPwiki - it doesn't use Wacov's infamous toggle script when it toggles between functionality.

      Have a play with it yourself:
      http://sketchup.google.com/3dwarehouse/details?mid=5b618d4ba6c22ca85fd35d52fb19ea9b&prevstart=0

      Youtube vid here: http://www.youtube.com/watch?v=GnblpHMRr7o&lr=1&feature=mhee

      If anyone can tell me anything about this cleverly designed SP rig then I would like to know more - I have been trying to reverse engineer some of the functionality out of the script but its not that intuitive to an SP noob like me. I would love to emulate the servos on the arms that stay where they are placed for example. I am also unable to make it crash wheras my models with similar functions crash regularly. Here's the ruby out of it:

      if frame<1.00
       @spc=0.00;@hokou=1.00;km=0;@st=0.00
       @lh1=0.00;@lh2=0.00;@lh3=0.00;@lh4=0.00;@lh5=0.00
       @rh1=0.00;@rh2=0.00;@rh3=0.00;@rh4=0.00;@rh5=0.00
      end
      if (key("x")==1 or joybutton("a")==1) and @km==0
       if@hokou==1
       @hokou=0
       else
       @hokou=1
       end
       @km=1
      end
      if key("x")==0 and joybutton("a")==0;@km=0;end
      #@spc=@spc+((slider('sp')-0.50)*9.00)
      if @hokou==1.00
      @spc=@spc+((0.5-lefty)*18.00)+((0.5-rightx)*18.00).abs+((0.5-leftx)*18.0).abs
      @sin1=sin((@spc/360.00)*2.00*PI)
      @sin2=sin((@spc/360.00)*2.00*PI+PI/2.00)
      if @sin2>=0.00
       @sin3=@sin2
      else
       @sin3=0.00
      end
      @sin5=sin((@spc/360.00)*2.00*PI+PI)
      @sin6=sin((@spc/360.00)*2.00*PI+PI*3.00/2.00)
      if @sin6>=0.00
       @sin7=@sin6
      else
       @sin7=0.00
      end
      if rightx==0.5
       @la1=@sin1;@lc1=@sin1;@rb1=@sin1
       @lb1=@sin5;@ra1=@sin5;@rc1=@sin5
      else
       @la1=0.00;@lb1=0.00;@lc1=0.00
       @ra1=0.00;@rb1=0.00;@rc1=0.00
      end
       @la2=@sin3;@lc2=@sin3;@rb2=@sin3
       @lb2=@sin7;@ra2=@sin7;@rc2=@sin7
      # @st=slider('st')
      @st=leftx
       @la1=@la1*@st;@lb1=@lb1*@st;@lc1=@lc1*@st
       @ra1=@ra1*(1-@st);@rb1=@rb1*(1-@st);@rc1=@rc1*(1-@st)
      if rightx!=0.5
      @sid=rightx-0.50
       @la3=@sin1*@sid;@lb3=@sin5*@sid;@lc3=@sin1*@sid
       @ra3=@sin5*@sid;@rb3=@sin1*@sid;@rc3=@sin5*@sid
      end
      
      # @la3=-@la1;@lc3=@lc1
      # @ra3=@ra1;@rc3=-@rc1
      
       @la2+=-0.50;@lb2+=-0.50;@lc2+=-0.50
       @ra2+=-0.50;@rb2+=-0.50;@rc2+=-0.50
       @la1=@la1*1.50+1.50;@lb1=@lb1*0.50;@lc1=@lc1*1.50-1.50
       @ra1=@ra1*1.50+1.50;@rb1=@rb1*0.50;@rc1=@rc1*1.50-1.50
       if leftx==0.5
       @lh1=0.00;@rh1=0.00
       end
      end
      if @hokou==0
       @lh2+=(0.5-righty);@rh2+=(0.5-righty)
       @lh5+=(0.5-leftx)*2.00;@rh5+=(0.5-leftx)*2.00
       @lh4+=(0.5-rightx);@rh4+=(0.5-rightx)
       @lh3+=(0.5-lefty);@rh3+=(0.5-lefty)
      end
      if @lh2>35;@lh2=35;@rh2=35;end
      if @lh2<-40;@lh2=-40;@rh2=-40;end
      if @lh3>15;@lh3=15;@rh3=15;end
      if @lh3<-55;@lh3=-55;@rh3=-55;end
      if @lh4>50;@lh4=50;@rh4=50;end
      if @lh4<-25;@lh4=-25;@rh4=-25;end
      if @lh5>40;@lh5=40;@rh5=40;end
      if @lh5<-50;@lh5=-50;@rh=-50;end
      if @rh5>40;@rh5=40;end
      if @rh5<-50;@rh5=-50;end
      
      
      if @hokou==1
       setVar("text","Walk 歩行")
      else
       setVar("text","work 作業")
      end
      

      Just some stuff I do with Sketchup.

      1 Reply Last reply Reply Quote 0
      • pilouP Offline
        pilou
        last edited by

        Amazing model! ☀
        Maybe here the creator of ScketchyPhysics will can help you 😉

        Frenchy Pilou
        Is beautiful that please without concept!
        My Little site :)

        1 Reply Last reply Reply Quote 0
        • ashscottA Offline
          ashscott
          last edited by

          You had a play with it Pilou?

          Did you notice all of the functionality? - the toggle between legs and working arms? The automated walk feature? The way the arm servos stay where you but them rather than springing back?

          I love it

          Ash

          Just some stuff I do with Sketchup.

          1 Reply Last reply Reply Quote 0
          • pilouP Offline
            pilou
            last edited by

            Not yet
            In the past i had play with this 😄

            Frenchy Pilou
            Is beautiful that please without concept!
            My Little site :)

            1 Reply Last reply Reply Quote 0
            • ashscottA Offline
              ashscott
              last edited by

              Thats cool Pilou - however, it doesn't have the scripting knowledge that is required to make something walk. Lifting and placing legs is a whole lot more complicated than turning wheels - but I agree, that is a beautiful warthog.

              Just some stuff I do with Sketchup.

              1 Reply Last reply Reply Quote 0
              • ashscottA Offline
                ashscott
                last edited by

                Boy, the sketchyphysics part of the forum sure is quiet compared to what it used to be - is there some other physics simulation software that I'm not aware of?

                I would love to get sketchyphysics back in the limelight - its such a fantastic bit of kit

                Ash

                Just some stuff I do with Sketchup.

                1 Reply Last reply Reply Quote 0
                • ashscottA Offline
                  ashscott
                  last edited by

                  Managed to reverse engineer some of the stuff on this amazing setup - see this thread: http://forums.sketchucation.com/viewtopic.php?f=61&t=44399

                  Just some stuff I do with Sketchup.

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

                    Maybe it is best sp setup, but pieces (legs, arms ...) dont colide as they look like. You can see my models similar to this on my site: http://forsa07.wix.com/dl-design#!design/cc9

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

                    Advertisement