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

    [problem] slider moving from fast to slow

    Scheduled Pinned Locked Moved SketchyPhysics
    4 Posts 2 Posters 351 Views 2 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.
    • T Offline
      tomer1981
      last edited by

      hey.

      you must have noticed this phenomenon. when i configure a slider like this:

      getVar('something')
      

      it automatically gets a value of "0" (zero). during the simulation, when it gets a different value by:

      setVar('something',1)
      

      it reacts violently to that, and moves very fast at first, and by the time it reaches the end of it's path, it slows down. the thing that bothers me most, is the fast acceleration, since if you hold a box, for example, with a claw, or something, then the fast acceleration causes the box to fall.

      is there a way of making slider move in a constant speed? or at least, reduce the acceleration at the beginning and the deceleration at the end, without losing the overall speed of movement?

      1 Reply Last reply Reply Quote 0
      • H Offline
        hpnisse
        last edited by

        Hey!

        Try to set the "damp" at least doubble of "accel", and play around with diffrent numbers.
        Hope this would help a little.

        /hpnisse

        ` /hpnisse`
        ` Windows 7 U -Sketchup 8 -SketchyPhysics 3.2-Dec2 - from Sweden`

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

          hey hpnisse.

          tried that, with all kinds of different combinations. it help a bit when it concerns small distances of movement, but when you go large, it still behaves very violently...

          if only i could transform the stable rotary movement of the "motor" to a linear movement, without getting caught up with gears...

          1 Reply Last reply Reply Quote 0
          • H Offline
            hpnisse
            last edited by

            Hey.
            There is a simple gear creater inside the Physics Engine.

            When you click with the "Joint Connector"-tool in one motor/hinge/slider/piston and hold Ctrl (control) -key and press a second motor/hinge/slider/piston these Joints connect to each other, a motor/hinge to a slider/piston would be a wormgear and motor/hinge to another motor/hinge would be a normaly gear.
            With this trick you don´t need that much geometry in the physics model that slow it down.

            I had attached a model with example of a motor to slider, in two ways. first, with physics geometry and a second with physics gear connecting that I explain earlier in this text:D

            Physics gears.skp

            hope this maybe would be some help.!

            /hpnisse

            ` /hpnisse`
            ` Windows 7 U -Sketchup 8 -SketchyPhysics 3.2-Dec2 - from Sweden`

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Buy SketchPlus
            Buy SUbD
            Buy WrapR
            Buy eBook
            Buy Modelur
            Buy Vertex Tools
            Buy SketchCuisine
            Buy FormFonts

            Advertisement