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

    MSPhysics 1.0.3 (16 October 2017)

    Scheduled Pinned Locked Moved Plugins
    926 Posts 171 Posters 883.1k Views 172 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.
    • pcberdwinP Offline
      pcberdwin
      last edited by

      Fantastic update! πŸ˜„ The buoyancy plane is interesting.
      I couldn't figure out how to record, though. I see the check box in settings but then what?

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

        Well i have found earlier versions around on the internet and i am confused with the version numbering because it already passed v1.0.0 @ 2014-09-01..... πŸ˜‰

        MSPhysics - v0.1.0 (2014-04-26)
        MSPhysics - v0.2.0 (2014-06-26)
        MSPhysics - v0.2.0 (2015-04-06) ???
        MSPhysics - v1.0.0 (2014-09-01)

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

          @pcberdwin said:

          Fantastic update! πŸ˜„ The buoyancy plane is interesting.
          I couldn't figure out how to record, though. I see the check box in settings but then what?

          The animation tool is a work in progress.

          @bas9999 said:

          Well i have found earlier versions around on the internet and i am confused with the version numbering because it already passed v1.0.0

          My poor planning πŸ˜† Wanted to get it all done on particular date, but got lazy and you know..

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

            Does this present version is working for the 2015?

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

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

              I do not work in SU 15, if only "static" groups in the model. =(

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

                What do you mean it doesn't work in 2015? It should work just as fine in all SU versions, including the 64bit. Did you download AMS Library as a requirement for MSPhysics?

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

                  @anton_s said:

                  What do you mean it doesn't work in 2015? It should work just as fine in all SU versions, including the 64bit. Did you download AMS Library as a requirement for MSPhysics?

                  Yes, I downloaded the AMS. I use a 64-bit Windows but the SU 32-bit, because the SP 3.5.
                  This could be the problem? Install the 64-bit Sketchup? I try this. I hope it will be good. πŸ˜•

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

                    Can you tell me what exactly isn't working because it should work on 32/64 bit SU versions just fine. Do you get any errors when you start SU?

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

                      Notice, this is 0.2.0 alpha. There are many features that are work in progress and not done yet. The joint tab is one of them.

                      I'm still skeptical why it didn't work on 32bit. I'll have to see it on my brothers laptop and see what was going on there.

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

                        @anton_s said:

                        Can you tell me what exactly isn't working because it should work on 32/64 bit SU versions just fine. Do you get any errors when you start SU?

                        I installed the 64-bit SketchUp. Now it works. πŸ˜ƒ This awesome!!!
                        However, I do not understand the "Joint" box.
                        There are no Joints. How to use it?

                        Dropbox - Error - Simplify your life

                        favicon

                        (www.dropbox.com)

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

                          @anton_s said:

                          Notice, this is 0.2.0 alpha. There are many features that are work in progress and not done yet. The joint tab is one of them.

                          I'm still skeptical why it didn't work on 32bit. I'll have to see it on my brothers laptop and see what was going on there.

                          I Mean. The scripts will work the same way as in the SP? I see the "Timer" other kind:

                          
                          timer=AMS;;C.start_timer(1000, false){
                            AMS;;C.stop_timer(timer)
                          }
                          
                          

                          ... and the "mouse script" will also be available.
                          But the "Geom :: Transformation" -new, -rotation, -scaling stay the same?

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

                            No, scripts are different. The whole API is different. See documentation links under "Body Script" tab. MSPhysics is not related to SP. Its a different project.

                            The timer is part of AMS Library API. And I advice you to use Timer from Timer module and not from πŸ˜„

                            timer = AMS;;Timer.start(1000, false) {
                              AMS;;Timer.stop(timer)
                            }
                            

                            Mouse control functions are available as well. See AMS::Cursor
                            Geom classes are part of SU API. They ALWAYS stay the same and are available without any plugins installed.

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

                              I would suggest you to start from start from MSPhysics OVERVIEW documentation tab.

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

                                @anton_s said:

                                I would suggest you to start from start from MSPhysics OVERVIEW documentation tab.

                                Okay, thanks Anton, I will later study.

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

                                  And the "mouse script" that is used to look around, turn wheels, and do other stuff can be rewritten to rely on AMS::Cursor functions. To monitor mouse clicks, you can use MSPhysics::Body events, like

                                  onLButtonDown { |x,y|
                                    ...
                                  }
                                  

                                  MSPhysics::Body has plenty of events and functions. You can see them here: MSPhysics::Body

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

                                    @anton_s said:

                                    And the "mouse script" that is used to look around, turn wheels, and do other stuff can be rewritten to rely on AMS::Cursor functions. To monitor mouse clicks, you can use MSPhysics::Body events, like

                                    onLButtonDown { |x,y|
                                    >   ...
                                    > }
                                    

                                    MSPhysics::Body has plenty of events and functions. You can see them here: MSPhysics::Body

                                    What is the equivalent of these? These are always needed. I read this:
                                    https://d5adbec3e1f2ea2f548f4aa0f7818eb2a3bf09ec.googledrive.com/host/0B3qg8f4WrNdHfnRoazY0djJXRk5USVg4a0tkR0FKRF9sOVNqYTNyQktxbWctRzNaRHRjd2M/MSPhysics/Body.html#get_body_by_address-class_method

                                    From SPhysics;
                                    simulation.findBody("body_name")
                                    sp_tool_instance.findGroupNamed("body_name")
                                    
                                    Here?
                                    simulation.get_body_by_address(address)
                                    
                                    

                                    The "Game mode" damn good!! πŸ’š

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

                                      I'll add body by name functions in next alpha release.

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

                                        Hello Anton. When I start the SketchUp, 12-13 minutes later crashes and come up the BugSplat.
                                        32 and 64 bit version as well. I tried the original "Sketchup Make" and the original starter .exe file.
                                        If do not start the simulation, you will too.

                                        I see that is available the "get_body_by_name".
                                        How do I hide or visible body or entities? "show_bodies(false)" every group will hide.

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

                                          Hi, Pitu!

                                          That crash is most likely coming from SDL2 or SDL2_mixer, libaries that allow you to play music and sounds in SU. I currently haven't figured out why the crash occurs but your report sure does tell I wasn't the only one experiencing that crash. I will try to zero-down and fix that bug before the upcoming release.

                                          To hide a body, you simply get body, and then reference its entity by get_entity function. Here is an example:

                                          onStart {
                                            @target = simulation.get_body_by_name("target")
                                            @target.get_entity.visible = false if @target
                                          }
                                          
                                          onEnd {
                                            @target.get_entity.visible = true if @target
                                          }
                                          

                                          You can also hide current body by writing this.get_entity.visible = false.

                                          1 Reply Last reply Reply Quote 0
                                          • soloS Offline
                                            solo
                                            last edited by

                                            Yup, after about 12 minutes SU crashes, even if not using MS Physics, if you remove from plugin folder the splats stop, must be a conflict someplace

                                            http://www.solos-art.com

                                            If you see a toilet in your dreams do not use it.

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 7
                                            • 8
                                            • 46
                                            • 47
                                            • 6 / 47
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement