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

    SketchyPhysics 3.5.6 (26 January 2015)

    Scheduled Pinned Locked Moved SketchyPhysics
    208 Posts 49 Posters 289.9k Views 49 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.
    • A Offline
      Anton_S
      last edited by

      To make the mouse control desired, simply multiply the whole controller by a negative sign.

      I will add a list-box from which you could choose the type of limits angle/length.

      1 Reply Last reply Reply Quote 0
      • A Offline
        Anton_S
        last edited by

        @cotty said:

        A new version is out and the changelog says: "Fixing up SketchPhysics export" (not tested).

        Cheers!

        It exports without problems, although the error comes when try to run the exported animation in Indigo render 3.6.28. Maybe I should download Indigo 3.8.x which is not available yet?

        1 Reply Last reply Reply Quote 0
        • cottyC Offline
          cotty
          last edited by

          @anton_s said:

          Maybe I should download Indigo 3.8.x which is not available yet?

          You'll find the newest beta in the forum: http://www.indigorenderer.com/forum/viewtopic.php?f=1%26amp;t=13252

          my SketchUp gallery

          1 Reply Last reply Reply Quote 0
          • T Offline
            Trobius
            last edited by

            Hi there! I've been an on and off user of sketchyphysics since 2.0.

            Would it be possible to create a way to get an emitted object's lifetime? I know about the setLifetime function, but is there a similar "getLifetime?"

            1 Reply Last reply Reply Quote 0
            • A Offline
              Anton_S
              last edited by

              Hello, William!

              Yes, SP doesn't have these methods. The API is quite incomplete.
              I just added getLifetime, getLifeStart, and getLifeEnd.

              Is there any other getter or setter functions you think shall be added before I post an update? Sorry, I can't think of any myself.

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

                You're a champ Anton, your efforts are very much appreciated.

                Wish I had time to get back to some of the SP work I was doing earlier.

                If anyone wants SP inspiration, check this model out: https://3dwarehouse.sketchup.com/model.html?id=5b618d4ba6c22ca85fd35d52fb19ea9b

                In fact, all of Phonic's work is pretty amazing: https://3dwarehouse.sketchup.com/user.html?id=0127263341868366760323686

                Just some stuff I do with Sketchup.

                1 Reply Last reply Reply Quote 0
                • A Offline
                  Anton_S
                  last edited by

                  Thanks, Ash.

                  Lately, I haven't created any SP either. I suppose, that is because I kinda lost passion in it.

                  Phoenix is a good SP modeler. He's sharing some great stuff! πŸ‘

                  Mr.K made some amazing things too. For instance, take a look at the Blue vs Red. You control the bot to get across the puzzle. It may appear mind boggling at first, but you'll get it mastered after some experience.

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

                    Have you had any interaction with Phonic? I couldn't get a response when I tried some years ago - I wondered if he was only mandarin speaking.

                    Just some stuff I do with Sketchup.

                    1 Reply Last reply Reply Quote 0
                    • A Offline
                      Anton_S
                      last edited by

                      @ashscott said:

                      Have you had any interaction with Phonic? I couldn't get a response when I tried some years ago - I wondered if he was only mandarin speaking.

                      Nope, I haven't. I doubt that Phoenix even reads the comments. Usually people respond to their comments by updating the model description with responses, but I never seen him do that.

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

                        One thing with Sketchyphysics I did wonder about - and I have no idea how to execute it - would be a "Cut" function. I have modeled saw milling machinery with SP in the past but always had to do some variation of a breakable joint to simulate cutting - due to the physical reactions in breaking a joint, you can understand that it wasn't pretty.

                        Any idea how to cut an object so that it becomes two?

                        Just some stuff I do with Sketchup.

                        1 Reply Last reply Reply Quote 0
                        • A Offline
                          Anton_S
                          last edited by

                          Piece of cake!

                          Copy this piece of code into the scripted field of the body that you want to be cut:

                          
                          onTouch {
                            split(self, 2)
                          }
                          
                          

                          What happens is that it splits when it is touched by another body. Increasing the value will create more cuts.

                          Of course, the code may be changed to have the body be split in another occasion, for instance when it touches a particular body, or at specified frame... If you provide some instructions I could easily write you a code.
                          πŸ’š

                          Here is a little example:cut_body_example.skp

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

                            Very cool!

                            I think I've seen some reference to this before.

                            How would I control the cut so it occurs in a specific place?

                            For example, on a piece of wood - to only be cut where the saw touches it?

                            Ash

                            Just some stuff I do with Sketchup.

                            1 Reply Last reply Reply Quote 0
                            • A Offline
                              Anton_S
                              last edited by

                              SP doesn't have this method, but I created my own.
                              https://3dwarehouse.sketchup.com/model.html?id=ua22b41f2-9654-4d70-898b-46d96e687272

                              https://googledrive.com/host/0B3qg8f4WrNdHWktZLXN5T2d6Tms/factory_slicer.gif

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

                                Anton,

                                I am stunned 😲

                                I have tried so long to get a working function like what you've shown and have failed miserably - this is totally amazing. I hope you don't mind me pillaging your code for ideas?

                                Frenchy:
                                @unknownuser said:

                                And also the white cross texture box "transparent" who is drawn

                                For some reason "Hidden Geometry" is getting turned on when I run an simulation the first time. Go >View>Hidden Geometry to turn it off.

                                Just some stuff I do with Sketchup.

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

                                  Cool function! πŸ‘
                                  But seems there is a glitch! πŸ˜‰

                                  When I use these 2 menus!
                                  After the Record Animation, replay etc...
                                  Animation is stopped at the moment of the box must be "exploded" on the inclined plane! 😲
                                  Can you verify this ?

                                  And also the white cross texture box "transparent" who is drawn! 😲
                                  This is the image of the result wished!
                                  glitchSketchy.jpg


                                  cut_body_example_glitch.skp

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

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

                                    Thx πŸ˜„

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

                                    1 Reply Last reply Reply Quote 0
                                    • A Offline
                                      Anton_S
                                      last edited by

                                      @unknownuser said:

                                      When I use these 2 menus!
                                      After the Record Animation, replay etc...
                                      Animation is stopped at the moment of the box must be "exploded" on the inclined plane! 😲
                                      Can you verify this ?

                                      The animation doesn't handle added and removed objects during simulation.

                                      What happens behind the scenes:
                                      When the body is about to be split, the body itself doesn't split, but rather two other bodies are added in similar form. The original body becomes hidden and set static, meanwhile the two added bodies take over the scene. When simulation resets the original body is unhidden, and the added split bodies are deleted. The animation tool is not complex. It does not record added and removed bodies during simulation.

                                      1 Reply Last reply Reply Quote 0
                                      • A Offline
                                        Anton_S
                                        last edited by

                                        @ashscott said:

                                        Anton,

                                        I am stunned 😲

                                        I have tried so long to get a working function like what you've shown and have failed miserably - this is totally amazing. I hope you don't mind me pillaging your code for ideas?

                                        Thanks! I'd be impressed to see someone use my code πŸ˜„

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

                                          @unknownuser said:

                                          It does not record added and removed bodies during simulation.

                                          Ok!
                                          So, how do save the result of the normal result if you want to use it for something?
                                          For example I want use the brocken rocks for an exposition! πŸ˜„
                                          Now as soon has i want select them (broken rocks) the animation restart at the beginning! 😲

                                          In the past I was making that without problem! πŸ˜„

                                          http://sketchucation.com/forums/download/file.php?id=123049&t=1

                                          http://sketchucation.com/forums/download/file.php?id=123045

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

                                          1 Reply Last reply Reply Quote 0
                                          • A Offline
                                            Anton_S
                                            last edited by

                                            In the past when you selected a different tool SP didn't always deactivate properly, i.e. sometimes objects failed to be placed back to original locations, but now they do. I suppose, you relied on the bug.

                                            One way to get all the split bodies is by playing simulation, pausing it at desired frame (i.e when you have broken rocks), and then save as another model. Open the new model, and you have the broken rocks!

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

                                            Advertisement