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

SketchyPhysics 3x June 27 version.

Scheduled Pinned Locked Moved SketchyPhysics
95 Posts 12 Posters 23.0k Views 12 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 29 Jun 2009, 23:05

    JaViXP it will work better if you change the onend to this:

    onend{
       group.erase!
    }
    
    1 Reply Last reply Reply Quote 0
    • P Offline
      Physicsguy1
      last edited by 29 Jun 2009, 23:40

      Will we be able to embed sound files anytime soon?

      1 Reply Last reply Reply Quote 0
      • P Offline
        Physicsguy1
        last edited by 30 Jun 2009, 01:21

        I tried something similar to javixp's line generator, but the groups I generated are not registered.


        scriptedrandomcube.skp

        1 Reply Last reply Reply Quote 0
        • C Offline
          CPhillips
          last edited by 30 Jun 2009, 05:40

          I dont know about the sound. I havent touched that code in a while, but I will see if it still works and let you know.

          1 Reply Last reply Reply Quote 0
          • P Offline
            Physicsguy1
            last edited by 30 Jun 2009, 06:12

            Tracks'n'Treads are much easier. I realy like the new version!


            tank.skp

            1 Reply Last reply Reply Quote 0
            • C Offline
              CPhillips
              last edited by 30 Jun 2009, 08:01

              Me too! Self connecting joints are a feature I have been trying to achieve since version 1. I HATE the JCT. Its hard to explain, tedious to use and is the reason you cant copy jointed objects. Its THE major reason I started SPIV. So, I am really glad it turns out to be possible in SP3.

              1 Reply Last reply Reply Quote 0
              • C Offline
                CPhillips
                last edited by 30 Jun 2009, 08:39

                Here is an example of a very simple camera system.

                The first example puts the camera eye at the position of the sphere and looking at [0,0,0].

                The second example finds the cone in the scene and looks at that. Note you can drag the cone and the camera will follow.

                The @simulation.camera.set commands parameters are location of the eye, the target and the "up" direction.

                The camera is the same as the camera in the Sketchup API:
                http://code.google.com/apis/sketchup/docs/ourdoc/camera.html


                camerasimple.skp


                cameraFollow.skp

                1 Reply Last reply Reply Quote 0
                • P Offline
                  Physicsguy1
                  last edited by 30 Jun 2009, 08:58

                  Now we can create multi-roll games!

                  1 Reply Last reply Reply Quote 0
                  • J Offline
                    JaViXP
                    last edited by 30 Jun 2009, 09:36

                    @cphillips said:

                    JaViXP it will work better if you change the onend to this:

                    onend{
                    >    group.erase!
                    > }
                    

                    Thanks, now it's much better (After a few times playing the animation it becomes kinda slow).

                    PhysicsGuy, well done I like your boxes creator, but there are too much boxes and it'll make the simulation laggy.

                    "Giving up is way harder than trying"
                    JaViXP's Rendering

                    1 Reply Last reply Reply Quote 0
                    • P Offline
                      phy
                      last edited by 30 Jun 2009, 11:37

                      MAN! That camera is unbelievablly good. 😍 😍

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

                      1 Reply Last reply Reply Quote 0
                      • J Offline
                        JaViXP
                        last edited by 30 Jun 2009, 16:37

                        It does not work for me 😞


                        SPd.jpg

                        "Giving up is way harder than trying"
                        JaViXP's Rendering

                        1 Reply Last reply Reply Quote 0
                        • W Offline
                          Wacov
                          last edited by 30 Jun 2009, 16:42

                          It's only half-SP related, but how do you move the ends of a script-created line using script? I've given up trying to replace existing lines on-the-fly, I figure it'd be easier to make them at the beginning of the simulation (or, if possible, before it), then move them every frame. They'd just be there to hold the faces for cloth, and something else I've got planned 😄

                          EDIT: Figured it out! Took alot of searching around, the API documentation isn't all that helpful 😆
                          I'm SURE this one's overcomplicated, but it's the only way I could find.

                          EDIT: Hopefully, I've fixed the problem 😄


                          Should work now

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

                          1 Reply Last reply Reply Quote 0
                          • W Offline
                            Wacov
                            last edited by 30 Jun 2009, 16:42

                            That's wierd, but it should be fixed now.

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

                            1 Reply Last reply Reply Quote 0
                            • P Offline
                              phy
                              last edited by 30 Jun 2009, 17:03

                              Awesome 😍

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

                              1 Reply Last reply Reply Quote 0
                              • J Offline
                                JaViXP
                                last edited by 30 Jun 2009, 22:26

                                Thanks it worked now. I have to agree with Phy, AWESOME!!

                                "Giving up is way harder than trying"
                                JaViXP's Rendering

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

                                  Here is a script that makes a simple to use auto connecting joint. In the first frame. The "pin" object automatically connects to any "door"'s it is touching with a hinge and anything else with a fixed joint. What makes it really useful is it copyable. 😄

                                  Note I made the "pin" object very dense and no collide. It didn't work very well otherwise.


                                  doorandpin5.skp

                                  1 Reply Last reply Reply Quote 0
                                  • W Offline
                                    Wacov
                                    last edited by 2 Jul 2009, 07:51

                                    Thanks for the tips Chris. Here's some movable, breakable objects (Kinda laggy, but fun 😄 )


                                    Breakables.skp


                                    Breakable wall.skp

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

                                    1 Reply Last reply Reply Quote 0
                                    • J Offline
                                      JaViXP
                                      last edited by 2 Jul 2009, 09:31

                                      Well done I like it! 👍

                                      So, Chris, any new features we missed? 😄

                                      "Giving up is way harder than trying"
                                      JaViXP's Rendering

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

                                        Took quite a while to code this right, and I can't get the faces to smooth, but here it is! Seamless cloth!!


                                        (Although it's not copyable)

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

                                        1 Reply Last reply Reply Quote 0
                                        • P Offline
                                          phy
                                          last edited by 2 Jul 2009, 13:56

                                          Um, CPillips how do you use the breakit command or is it a command. I don't mean the split command by the way. Wacov that's fantastic. 👍

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

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

                                          Advertisement