sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🫛 Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download

    Making a loaded spring

    Scheduled Pinned Locked Moved SketchyPhysics
    2 Posts 2 Posters 460 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.
    • S Offline
      stefwilliams
      last edited by

      I'm trying to set up a model where a spring is triggered after an object collides with it... I can set it up so that when I manually double-click it, it triggers, but what do I need to do is trigger it when another object hits it (or the object that it is grouped with.
      Does anyone have any advice?

      1 Reply Last reply Reply Quote 0
      • W Offline
        Wacov
        last edited by

        Assuming you have SketchyPhysics 3 experimental (SP3 X), you can use onTouch to help with this. First, instead of a spring, use a slider, set a fixed value (0) as the controller, and play with the accel and damp until you get it satisfyingly springy. You can then replace the controller with a variable, e.g. getVar("spring",0)
        Then, in onTouch of the same object, use setVar("spring",1)

        This means that when the object is touched, the 'default' position of the springy slider will move from the 0 position to the 1 position.

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

        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