• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

SketchyPhysics + SketchUp API = fun

Scheduled Pinned Locked Moved SketchyPhysics
18 Posts 6 Posters 2.2k 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.
  • B Offline
    BTM
    last edited by 7 Jul 2009, 01:31

    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 😎

    1 Reply Last reply Reply Quote 0
    • C Offline
      CPhillips
      last edited by 7 Jul 2009, 05:38

      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 7 Jul 2009, 07:43

        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 7 Jul 2009, 18:57

          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 7 Jul 2009, 19:12

            @cphillips said:

            It looks like that BMW commercial

            … What Commercial?

            1 Reply Last reply Reply Quote 0
            • W Offline
              Wacov
              last edited by 7 Jul 2009, 21:11

              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 7 Jul 2009, 22:54

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

                1 Reply Last reply Reply Quote 0
                • S Offline
                  Sgal
                  last edited by 8 Jul 2009, 16:53

                  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 8 Jul 2009, 17:05

                    @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 8 Jul 2009, 17:34

                      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 9 Jul 2009, 09:51

                        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 11 Jul 2009, 20:49

                          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 11 Jul 2009, 22:42

                            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 11 Jul 2009, 23:38

                              Particle effects?

                              1 Reply Last reply Reply Quote 0
                              • B Offline
                                BTM
                                last edited by 12 Jul 2009, 01:17

                                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 12 Jul 2009, 02:07

                                  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 12 Jul 2009, 07:27

                                    Its like snow. Nice model BTM!

                                    1 Reply Last reply Reply Quote 0
                                    • W Offline
                                      Wacov
                                      last edited by 12 Jul 2009, 08:10

                                      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
                                      1 / 1
                                      • First post
                                        16/18
                                        Last post
                                      Buy SketchPlus
                                      Buy SUbD
                                      Buy WrapR
                                      Buy eBook
                                      Buy Modelur
                                      Buy Vertex Tools
                                      Buy SketchCuisine
                                      Buy FormFonts

                                      Advertisement