sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🫛 Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download

    SketchyPhysics + SketchUp API = fun

    Scheduled Pinned Locked Moved SketchyPhysics
    18 Posts 6 Posters 2.4k Views 6 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.
    • C Offline
      CPhillips
      last edited by

      Wow! BTM that is truly amazing. It looks like that BMW commercial. The script is much simpler than I expected.

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

        Ooh... that's awesome...

        http://sketchup.google.com/3dwarehouse/cldetails?mid=3096a836877fb9af6cd8ad826e9017b8&prevstart=0

        1 Reply Last reply Reply Quote 0
        • B Offline
          BTM
          last edited by

          try adding this code in the onTick field of the back wheels of one of your vehicles, with a framerate of 3 or 4-ish. Then drive. It's fun 😉

          p=$curEvalGroup.bounds.center if frame >= 3 face=Sketchup.active_model.entities.add_face p, @c, @b face.material="white"     face.back_material="white" face.edges.each do |e| e.soft="true" e.smooth="true" e.hidden="true" end end @c=p
          …do that for one wheel and for the other, this.
          p=$curEvalGroup.bounds.center if frame >= 3 face=Sketchup.active_model.entities.add_face p, @b, @c face.material="white" face.back_material="white" face.edges.each do |e| e.soft="true" e.smooth="true" e.hidden="true" end end @b=p
          pathdrawcar.jpg

          1 Reply Last reply Reply Quote 0
          • B Offline
            BTM
            last edited by

            @cphillips said:

            It looks like that BMW commercial

            … What Commercial?

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

              Lol, sweet. I'm dipping into the API myself, like with the cloth thing... and I agree, it's fun 😄

              Btw, the advert is: http://www.youtube.com/watch?v=Lj-LT2IeA9s

              http://sketchup.google.com/3dwarehouse/cldetails?mid=3096a836877fb9af6cd8ad826e9017b8&prevstart=0

              1 Reply Last reply Reply Quote 0
              • B Offline
                BTM
                last edited by

                It's like follow-me, but with a vehicle…

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

                  A stupid suggestion... The cars'objects could be locked to make easier to cancel the previous track until automatic reset is available.

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    BTM
                    last edited by

                    @sgal said:

                    A stupid suggestion... The cars'objects could be locked to make easier to cancel the previous track until automatic reset is available.

                    I don't quite understand.

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

                      I think he wants it to automatically delete the track after the sim. That's easy enough in the new version, but undoing after the sim will give the same result 😄

                      http://sketchup.google.com/3dwarehouse/cldetails?mid=3096a836877fb9af6cd8ad826e9017b8&prevstart=0

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

                        Thanks Wacov- I forgot that the simulation can be undone.
                        To •BTM: My poor english sometimes makes my sentences unclear- specially when I'm in hurry.

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

                          Maybe if someone could just figure out how to set an object to spark(create a yellow trans. face) on the contact point when it's hit by something fast, like a bullet. Would be quite an addition to our little FPS models!

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

                            You might be in for a pleasant surprise 😄

                            http://sketchup.google.com/3dwarehouse/cldetails?mid=3096a836877fb9af6cd8ad826e9017b8&prevstart=0

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

                              Particle effects?

                              1 Reply Last reply Reply Quote 0
                              • B Offline
                                BTM
                                last edited by

                                More playing, this time similar to sculpting.
                                … Unfortunately, it doesn't run that fast.

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

                                  All I can say is wow.

                                  Tableau de comparaison de Staxyn s'agit d'un mГ©dicament uniquement sur ordonnance.

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

                                    Its like snow. Nice model BTM!

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

                                      Really shows what you can do with the scripting, very nice!!

                                      http://sketchup.google.com/3dwarehouse/cldetails?mid=3096a836877fb9af6cd8ad826e9017b8&prevstart=0

                                      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