sketchucation logo sketchucation
    • Login
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    More controller boxes?

    scheduled pinned locked moved SketchyPhysics
    6 Posts 4 Posters 661 Views 4 Watching
    loading-more-posts
    • oldest-to-newest
    • newest-to-oldest
    • most-votes
    reply
    • reply-as-topic
    guest-login-reply
    deleted-message
    • B Offline
      BTM
      last edited by

      I've been making a model, and recently came to a point where I wanted to be able to change the accel in a joint, by having it controllable. Is it any harder to have things like accel, emitter lifetime, min/ max, max accel or any other things of the sorts controllable through code? Not really that necessary, I'm mostly just wondering if it requires a lot of coding, if it's just changing around a few lines of code a bit, or if it's even possible.

      one-reply-to-this-post last-reply-time reply quote 0
      • M Offline
        MrPlanet
        last edited by

        I don't think so, you can only enter raw ruby into the boxes. nothing like 0.5-getVar("accel")

        I reject your reality and substitute my own.

        one-reply-to-this-post last-reply-time reply quote 0
        • B Offline
          BTM
          last edited by

          ...I meant: would it be harder to make these boxes also include ruby code, maybe in SPIV, maybe sooner, maybe not.

          one-reply-to-this-post last-reply-time reply quote 0
          • P Offline
            phy
            last edited by

            From looking at the scrip it would possible, but I don't know enough of script to do it 😄 .

            Tableau de comparaison de Staxyn s'agit d'un mГ©dicament uniquement sur ordonnance.

            one-reply-to-this-post last-reply-time reply quote 0
            • C Offline
              CPhillips
              last edited by

              Its possible. But each field I make script controllable it dramatically adds to the complexity of the SP3 code. And it slows the simulation. Both of these issues will be fixed in SPIV.

              I think the best fix going forward is to set the joint parameters in an onTick (or whatever) event. So rather than having a formula in the accel field instead in onTick (or whatever) you can do something like this:

              
              joint.accel=righty*100.0
              joint.min=joint.min+10.0
              
              one-reply-to-this-post last-reply-time reply quote 0
              • P Offline
                phy
                last edited by

                @cphillips said:

                Its possible. But each field I make script controllable it dramatically adds to the complexity of the SP3 code. And it slows the simulation. Both of these issues will be fixed in SPIV.

                I think the best fix going forward is to set the joint parameters in an onTick (or whatever) event. So rather than having a formula in the accel field instead in onTick (or whatever) you can do something like this:

                
                > joint.accel=righty*100.0
                > joint.min=joint.min+10.0
                

                Great that'll solve some of my problems.

                Tableau de comparaison de Staxyn s'agit d'un mГ©dicament uniquement sur ordonnance.

                one-reply-to-this-post last-reply-time 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