• Login
sketchucation logo sketchucation
  • Login
ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

MSPhysics tests and questions

Scheduled Pinned Locked Moved Plugins
104 Posts 21 Posters 44.7k Views
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
    aldoz8
    last edited by 11 Feb 2018, 11:28

    Hi, I hope I am in the right place to put my question..

    I am developing a quadruped robot:
    https://www.youtube.com/watch?v=bt_8X4lYDGY

    So I am using SketchUP make 2017 + MSPhysics to test different settings of my robot and different scenarios :
    https://www.youtube.com/watch?v=fBTxNx2UAT8

    Just cool! but I have a little problem:
    In Sketchup I am using 8 servos, 2 for each legs and I get (as you can see in the second video) 8 MSPhysics sliders to move my 8 servos.
    Ok, but I would to have another slider that let me to move, for example, servos 3,4 and 5.
    So I would to obtain my actual 8 sliders + 1 new sliders that move servos 3,4 and 5.
    Obviously I will be able to move servo 3,4 and 5 using both the old 3,4&5 sliders and the new one slider too!
    So I will obtain :
    SLIDER 1 = servo 1
    SLIDER 2 = servo 2
    SLIDER 3 = servo 3
    SLIDER 4 = servo 4
    SLIDER 5 = servo 5
    SLIDER 6 = servo 6
    SLIDER 7 = servo 7
    SLIDER 8 = servo 8
    SLIDER 9 = servo 3, 4, 5

    How to do that?
    Thank you all in advance!

    1 Reply Last reply Reply Quote 0
    • topic:timeago-later,15 days
    • E Offline
      ecati
      last edited by 26 Feb 2018, 06:04

      aldoz8
      If you can not find a solution, do you share the skp file?

      1 Reply Last reply Reply Quote 0
      • J Offline
        Jens3D
        last edited by 26 Feb 2018, 08:22

        I downloaded MS Physics plugin after seeing a demo from Justin's SketchUpEssentials. Looks really cool, but is it really compatible with Mac? It says it is, but following the tutorials on Youtube, all the setup modes seem to function, but when it comes to implementation, the model disappears, and a counter on the bottom left hand of the screen counts ‘Frame’, Time and FPS. Goes on forever! Is this normal?

        Box, on the SketchUp Forum looked at the model for me on a PC, and then had similar issues, so suggested that this is not necessarily a Mac issue.

        I am setting up a mobile (to hang above a baby's cot) with rotating discs balanced on a simple rod. Each disc then has to be able to swivel on its vertical axis, each group would then too, and then including the main arm holding all the groups has to be able to swivel on its axis.

        Can Anybody offer some advice.

        Thanks
        Jens

        1 Reply Last reply Reply Quote 0
        • F Offline
          faust07
          last edited by 26 Feb 2018, 13:52

          Judging from the description, objects outside the window seem to fall into the bottomless state and cause the SketchUp clipping problem. All groups or components that should not be simulated should be set to "Ignore" or "Static". This can be done in the MSP user interface or in the MSP context menu. A sample SUp model is always very helpful for more precise assessments.

          1 Reply Last reply Reply Quote 0
          • F Offline
            faust07
            last edited by 26 Feb 2018, 14:02

            @ aldoz8:
            There is no easy solution for this after my first tests. Each slider can directly control only one joint (and several identical copies of the joint) at a time. It is possible to use scripts to query the input values from a slider and pass them on to the required other joints. Unfortunately, I don't have time for an example. Sorry!

            1 Reply Last reply Reply Quote 0
            • E Offline
              ecati
              last edited by 26 Feb 2018, 15:38

              This is a message sent by mistake. It needs to be deleted. I did not delete it. Sorry.

              1 Reply Last reply Reply Quote 0
              • topic:timeago-later,12 months
              • T Offline
                tecnozati
                last edited by 14 Feb 2019, 18:54

                Hello everyone, to see if a charitable soul can help me out.
                Using MSPhysics script I want to get:
                1 know the position of a servo join
                2 move the servo without using “get_var ()” as controller

                I wish to animate a mechanism with scripting, I would greatly appreciate code examples (I find it almost impossible to find them)
                Greetings and many thanks

                1 Reply Last reply Reply Quote 0
                • F Offline
                  faust07
                  last edited by 15 Feb 2019, 15:19

                  There is a link to the Scripting Documentation in the first post of Anton_S regarding his MSPhysics plugin: https://sketchucation.com/forums/viewtopic.php?f=323&t=56852

                  1 Reply Last reply Reply Quote 0
                  • A Offline
                    Anton_S
                    last edited by 16 Feb 2019, 07:09

                    tecnozati,

                    Yeah, the docs do not have enough coding examples. But I intended to fix that someday.

                    To get the position of a servo joint from a script field, you will first need to know the name/id of the joint, which is displayed in UI when you select the joint. Then you can write the following code:

                    
                    onStart {
                      @j = simulation.find_joint_by_name("569422")
                    }
                    
                    onTick {
                      # Set desired angle
                      if (key(' ') == 1) 
                        @j.controller = 100.degrees
                      else
                        @j.controller = 0
                      end
                      
                      # Get current angle
                      simulation.log_line @j.cur_angle.radians
                    }
                    
                    

                    You can refer to servo docs for more functionality: https://www.rubydoc.info/github/AntonSynytsia/MSPhysics/MSPhysics/Servo

                    Anton

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      tecnozati
                      last edited by 17 Feb 2019, 20:17

                      😮 😮 Thank you, thank you, thank you! The head was going to burn me!
                      And above all, thanks for Msphysics! 👍

                      1 Reply Last reply Reply Quote 0
                      • topic:timeago-later,12 days
                      • T Offline
                        tecnozati
                        last edited by 1 Mar 2019, 21:04

                        Again, thanks Anton, I have managed to give life to my creature 😉

                        1 Reply Last reply Reply Quote 0
                        • A Offline
                          Anton_S
                          last edited by 1 Mar 2019, 21:21

                          Dude great job!!!

                          1 Reply Last reply Reply Quote 0
                          • topic:timeago-later,4 years
                          • P Offline
                            pppppppppppppppppppppppppppppluginuser
                            last edited by pppppppppppppppppppppppppppppluginuser 26 Nov 2022, 23:25

                            I have made a simple car and set a controller for the servos and motors but they don't respond. Any clue on how to fix? (controls are the arrow keys)


                            Motor ui


                            Servo ui


                            Simple car


                            Car Simulation.skp

                            1 Reply Last reply Reply Quote 0
                            • E Offline
                              ecati
                              last edited by 27 Nov 2022, 04:23

                              If you upload the skp file, we can have a look.

                              1 Reply Last reply Reply Quote 0
                              • E Offline
                                ecati
                                last edited by 27 Nov 2022, 13:06

                                It works perfectly. I didn't see any problem.
                                Click on the picture for animation.


                                test.gif

                                1 Reply Last reply Reply Quote 0
                                • P Offline
                                  pppppppppppppppppppppppppppppluginuser
                                  last edited by 28 Nov 2022, 01:44

                                  It might be something with my wrong with either my computer, msphysics, or sketchup because I start the simulation and the car starts driving by itself and doesn't respond to the the arrow keys.

                                  Also is there a plugin that downloads the simulation recording?

                                  1 Reply Last reply Reply Quote 0
                                  • P Offline
                                    pppppppppppppppppppppppppppppluginuser
                                    last edited by 29 Nov 2022, 04:05

                                    Never mind I just needed to uninstall MS physics and AMS library and get the extensions from the SketchUp extension warehouse. Just a final question, what plugin downloads the simulation recording?

                                    1 Reply Last reply Reply Quote 0
                                    • BoxB Offline
                                      Box
                                      last edited by 1 Dec 2022, 16:04

                                      A small hint, I suspect nobody has bothered to reply or read your posts due to your spam style user name. I only came here by accident.

                                      Like most things in life there is 'Unique' and there is 'wtf'. try being unique.

                                      1 Reply Last reply Reply Quote 0
                                      • Rich O BrienR Offline
                                        Rich O Brien Moderator
                                        last edited by 1 Dec 2022, 16:08

                                        I fixed it to be less obnoxious.

                                        Download the free D'oh Book for SketchUp

                                        1 Reply Last reply Reply Quote 0
                                        • topic:timeago-later,2 months
                                        • D Offline
                                          DanyLecocq
                                          last edited by 31 Jan 2023, 20:12

                                          Bonjour, je n'ai également pas la possibilité de commander les animations (Thruster, Emetter, etc..) avec le clavier de mon portable, je ne suis pas le premier à relever ce problème apparemment et je ne trouve pas la solution. Avez-vous une idée svp ?

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

                                          Advertisement