sketchucation logo sketchucation
    • Login
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    SketchyPhysics + SketchUp API = fun

    scheduled pinned locked moved SketchyPhysics
    18 Posts 6 Posters 2.3k Views 6 Watching
    loading-more-posts
    • oldest-to-newest
    • newest-to-oldest
    • most-votes
    reply
    • reply-as-topic
    guest-login-reply
    deleted-message
    • B Offline
      BTM
      last edited by

      BMW Z4_0.6.skp
      … I've been playing around with mixing up methods from the SketchUp API with SketchyPhysics, and have concluded that it's really fun 😄 The above model was made entirely by me, and is a BMW Z4 which is steered by the WASD keys, and spacebar is boost, with C and V to take out/ put away guns, and up arrow to shoot. Shooting doesn't really matter though; it's not the point 😎

      one-reply-to-this-post last-reply-time reply quote 0
      • 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.

        one-reply-to-this-post last-reply-time reply quote 0
        • W Offline
          Wacov
          last edited by

          Ooh... that's awesome...

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

          one-reply-to-this-post last-reply-time 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

            one-reply-to-this-post last-reply-time reply quote 0
            • B Offline
              BTM
              last edited by

              @cphillips said:

              It looks like that BMW commercial

              … What Commercial?

              one-reply-to-this-post last-reply-time 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

                one-reply-to-this-post last-reply-time reply quote 0
                • B Offline
                  BTM
                  last edited by

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

                  one-reply-to-this-post last-reply-time 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.

                    one-reply-to-this-post last-reply-time 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.

                      one-reply-to-this-post last-reply-time 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

                        one-reply-to-this-post last-reply-time 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.

                          one-reply-to-this-post last-reply-time 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!

                            one-reply-to-this-post last-reply-time 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

                              one-reply-to-this-post last-reply-time reply quote 0
                              • P Offline
                                Physicsguy1
                                last edited by

                                Particle effects?

                                one-reply-to-this-post last-reply-time reply quote 0
                                • B Offline
                                  BTM
                                  last edited by

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

                                  one-reply-to-this-post last-reply-time 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.

                                    one-reply-to-this-post last-reply-time reply quote 0
                                    • C Offline
                                      CPhillips
                                      last edited by

                                      Its like snow. Nice model BTM!

                                      one-reply-to-this-post last-reply-time 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

                                        one-reply-to-this-post last-reply-time 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