sketchucation logo sketchucation
    • Login
    1. Home
    2. phy
    3. Posts
    πŸ›£οΈ Road Profile Builder | Generate roads, curbs and pavements easily Download
    P
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 8
    • Posts 193
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: 3D Warehouse Explorer V 1.2

      πŸ‘ One thing though, I can't see the how many stars the models are rated. I can see the stars on internet browsers but not on your 3d warehouse explorer or on the warehouse explorer thats in sketchup. Is there a way to fix that.

      Or maybe there's problem with my PC. πŸ˜’

      posted in Corner Bar
      P
      phy
    • RE: UPDATE:poor mans joystick
              a=(@joystate.rgbButtons[0]/-128)+(key('numpad4'))
              b=(@joystate.rgbButtons[1]/-128)+(key('numpad7'))
              x=(@joystate.rgbButtons[2]/-128)+(key('numpad8'))
              y=(@joystate.rgbButtons[3]/-128)+(key('numpad9'))              
      
      

      For the a, b, x, and y keys I just added +key('numpad 4 7 8 9') to the script that was already there.

      I used your joy('rightx') script for the joybutton('a b x y lb etc.).

      def joybutton(name)
              name.downcase!
              deadzone=100
              case name
                  when "a"
                      if(@joystate.rgbButtons[0].abs>deadzone)
                          return (@joystate.rgbButtons[0]/-128)
                      else
                          return (getKeyState(VK_NUMPAD4)?1;0.0)
                      end
                  when "b"
                      if(@joystate.rgbButtons[1].abs>deadzone)
                          return (@joystate.rgbButtons[1]/-128)
                      else
                          return (getKeyState(VK_NUMPAD7)?1;0.0)
                      end
                  when "x"
                      if(@joystate.rgbButtons[2].abs>deadzone)
                          return (@joystate.rgbButtons[2]/-128)
                      else
                          return (getKeyState(VK_NUMPAD8)?1;0.0)
                      end
                  when "y"
                      if(@joystate.rgbButtons[3].abs>deadzone)
                          return (@joystate.rgbButtons[3]/-128)
                      else
                          return (getKeyState(VK_NUMPAD9)?1;0.0)
                      end 
                  when "lb"
                      if(@joystate.rgbButtons[4].abs>deadzone)
                          return (@joystate.rgbButtons[4]/-128)
                      else
                          return (getKeyState(VK_NUMPAD0)?1;0.0)
                      end
                  when "rb"
                      if(@joystate.rgbButtons[5].abs>deadzone)
                          return (@joystate.rgbButtons[5]/-128)
                      else
                          return (getKeyState(VK_NUMPAD6)?1;0.0)
                      end
                  when "back"
                      if(@joystate.rgbButtons[6].abs>deadzone)
                          return (@joystate.rgbButtons[6]/-128)
                      else
                          return (getKeyState(VK_SUBTRACT)?1;0.0)
                      end
                  when "start"
                      if(@joystate.rgbButtons[7].abs>deadzone)
                          return (@joystate.rgbButtons[7]/-128)
                      else
                          return (getKeyState(VK_ADD)?1;0.0)
                      end
                  when "leftb"
                      if(@joystate.rgbButtons[8].abs>deadzone)
                          return (@joystate.rgbButtons[8]/-128)
                      else
                          return (getKeyState(VK_SEPARATOR)?1;0.0)
                      end
                  when "rightb"
                      if(@joystate.rgbButtons[9].abs>deadzone)
                          return (@joystate.rgbButtons[9]/-128)
                      else
                          return (getKeyState(VK_MULTIPLY)?1;0.0)
                      end
                end
          end  
      

      And for joyRX & joyRY I used this.

        joyRX=0.5+(getKeyState(VK_NUMPAD3)?0.5;0.0)+(getKeyState(VK_NUMPAD1)?-0.5;0.0)
              joyRY=0.5+(getKeyState(VK_NUMPAD2)?0.5;0.0)+(getKeyState(VK_NUMPAD5)?-0.5;0.0)
      

      There's probably some bad scripting in there somewhere.

      posted in SketchyPhysics
      P
      phy
    • RE: Animated sequences motion using Sketchy physics ruby script

      most of the intermediate script goes in the ontick field.

      posted in SketchyPhysics
      P
      phy
    • RE: Help....Please...

      Can you make your own models. Or did sketchyphysics just quite working absolutely.

      posted in SketchyPhysics
      P
      phy
    • RE: UPDATE:poor mans joystick

      Tell me if something doesn't work right

      posted in SketchyPhysics
      P
      phy
    • RE: UPDATE:poor mans joystick

      The finished project Ahhhh. controls: joyRY=5&2, joyRX=1&3, a=4, b=7, x=8, y=9, lb=0, rb=6, back=minus(-), start=plus(+), leftb=divide(/), rightb=multiply(*) Woohoo 😍


      ControllerCommands.rb

      posted in SketchyPhysics
      P
      phy
    • RE: UPDATE:poor mans joystick

      Ok I'll soon have all the keys working. start,select, etc.

      posted in SketchyPhysics
      P
      phy
    • RE: Help....Please...

      It's not happening to me and I have XP sp3 like javixp. How are you downloading the file. Are you using firefox too.
      Did it happen right after you downloaded the modified controllercommands file.

      posted in SketchyPhysics
      P
      phy
    • RE: UPDATE:poor mans joystick

      Ok guys here's the file. NOTICE lb & rb do not work. the controls: joyRY=8&5, joyRX=4&6, a=7, b=9, x=1, y=3. That's all I got right now.

      Put this file in place of "controllercomands" in <plugins><sketchyphysics3>.
      CPhillips is it possible to get lb and rb working

      EDIT: the buttons a b x y weren't working in the update they do work.


      ControllerCommands.rb

      posted in SketchyPhysics
      P
      phy
    • RE: UPDATE:poor mans joystick

      OK I musta messed something up after I uploaded it I'll keep trying to put more buttons on.

      posted in SketchyPhysics
      P
      phy
    • RE: UPDATE:poor mans joystick

      Oh nothings working for me now 😳 😒 😞 IT had been working. Put your other controllercommands in a safe place before installing.
      Does it work for any of you?

      posted in SketchyPhysics
      P
      phy
    • UPDATE:poor mans joystick

      I've modified the controller commands file for the the people that don't have a joypad. I used the numpad keys instead of the joypad keys. So if any you guys are interested I'll upload the file.

      edit: here's the file for sp3x June 27, for the original sp3x scroll down


      ControllerCommands.rb

      posted in SketchyPhysics
      P
      phy
    • RE: ???

      Like this is kinda what I mean here. does have flaws πŸ˜• πŸ˜•


      NOT FLAWLESS

      posted in SketchyPhysics
      P
      phy
    • RE: ???

      Only way I can think of is a "nocollision" thing with an ontouch to

      setVar('t',1)
      

      and on the emmitter's rate or strength

      if getSetVar('t')==1; 0;else 10;end
      

      not very good strategy though most likely won't work with whatever your doing.

      posted in SketchyPhysics
      P
      phy
    • RE: SketchyPhysics doesn't work!

      I don't think it was the laptop. I've had the problem javixp's having, the only way to fix it is to reinstall sketchup and sketchyphysics.

      posted in SketchyPhysics
      P
      phy
    • RE: My first model

      Go to this link to learn about joints.
      http://sketchyphysics.wikia.com/wiki/Category;Joints

      posted in SketchyPhysics
      P
      phy
    • RE: My first model

      I remember when I made my first model. I thought it quite a accomplishment now looking back I'm not so sure. πŸ˜„ Great first model.

      PS. you should probably get sketchyphysics 3 here http://sketchyphysics.wikia.com/wiki/SketchyPhysicsWiki

      posted in SketchyPhysics
      P
      phy
    • RE: Working on new scripting system.

      That looks so cool, can't wait. But I have a question is this version going to still be sp3 or is it going to be spIV? Are we going to be able to control how many places the breakable script breaks? Also in the next version will we be able to group joints multiple times?

      posted in SketchyPhysics
      P
      phy
    • RE: Working on new scripting system.

      This stuff is great. UM,can I ask when the next version is going to out. πŸ˜’ πŸ˜„

      posted in SketchyPhysics
      P
      phy
    • RE: Menu Script

      THAT'S GREAT. πŸ˜„

      posted in SketchyPhysics
      P
      phy
    • 1 / 1