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

    3
    0 Votes
    3 Posts
    541 Views
    C
    As far as I know there isnt a way to do it under Sketchup. Sorry.
  • Where can I find a comprehensive, complete script tutorial?

    7
    0 Votes
    7 Posts
    652 Views
    P
    This does help, but when I tried the things you told me, no luck. I have recently started to try to make an exploding artillery shell. In theory, an impact would push an object on a slider joint, into a magnet. This would trigger an onTouch event that causes the magnet to activate, blowing the shell apart. Now, in the "ontouch" field, I put this in: setVar("Boom",1) In the section that designates the magnet's strength, I put this in: getVar("boom")*-1000 It isn't working. What am I doing wrong? UPDATE: Fixed. I realized the variables are case-sensitive.
  • Bullet collision detection

    2
    0 Votes
    2 Posts
    552 Views
    M
    I have had that problem. I think you need to layer the collision.
  • Simple Sound Problem..

    3
    0 Votes
    3 Posts
    432 Views
    B
    Yeah, but depending on what you want, it could be done different ways.
  • Rolling cylinder problem

    15
    0 Votes
    15 Posts
    923 Views
    T
    Aha! When the physics are edited, the 4 parts are changed to BOX physics, Then grouped. I was making them static mesh, which was wrong for what I needed them to do. Thanks for trying to help here phy!
  • My next game...

    24
    0 Votes
    24 Posts
    2k Views
    W
    I'll release it for download when there's a coherent track. At the moment half the routes are inaccessable, and on parts of the track it's very hard to know where to go.
  • Ball Joint Problem

    2
    0 Votes
    2 Posts
    290 Views
    P
    The ball joint's min and max need to be set to 0.
  • Sounds playing up

    7
    0 Votes
    7 Posts
    607 Views
    S
    @unknownuser said: Yeah. ...Or you could go out and buy a mac As much as I like macs I'm not getting one. No pocket money/paper round or general source of income coupled with high price=out of limits
  • Where's Chris?

    5
    0 Votes
    5 Posts
    589 Views
    W
    Ok.. just my luck to post this a few hours before you come back on....
  • Lookat feature

    4
    0 Votes
    4 Posts
    529 Views
    C
    Right now you can't make an object stop looking at anything. You can change the target but not clear it. In the future lookAt("") will clear the target.
  • Terminal Velocity?

    8
    0 Votes
    8 Posts
    602 Views
    C
    There isn't a terminal velocity. The longer something falls the faster it will go. There is a tiny bit of resistance that keeps a object from moving forever in zero gee. I think it can be reduced to almost 0 but if it is too low the models apparently tend to be unstable.
  • Variables

    4
    0 Votes
    4 Posts
    547 Views
    C
    That will work. But you should be aware of a few things: Some variables names could cause things to break. For example @frame is already being used and if you override it could break things. If you use something like "@foo" the value will be the same for all objects. Same as getVar and setVar are now. But in a future version each object will have its own version of "@foo". So keep in mind that a model that uses "@foo" now will change behavior when that version comes out.
  • Sound API...?

    4
    0 Votes
    4 Posts
    415 Views
    C
    @wacov said: Chris, I saw a post from you mentioning a sound API... what exactly would this let us do, aside from uploading sounds along with models? Will sounds stop playing at the end of the simulation? Will we be able to overlap sounds on windows? I'd really like to have a way to play looping engine sounds that are modified dynamically, speeding up/slowing down as a variable changes. It would fix most of the bugs on the Windows side. It will allow overlap and probaby stopping the sound at the end. I dont know about a variable looping sound but I will look into it.
  • Frame-cycle

    6
    0 Votes
    6 Posts
    681 Views
    C
    I would do it by using a variable instead of frame. That way you could control when it plays and be able to reset it when done. In an OnTick #only increase "myframe" if "xxx" >0 if(getVar("xxx")>0);setVar("myframe",getVar("myframe")+1);end #if "myframe" is greater than 100 then reset and stop. if(getVar("myframe")>100);setVar("myframe,0);setVar("xxx",0);end Then in the servo controller use getVar("myframe") instead of frame.
  • Maximum Sound Duration

    4
    0 Votes
    4 Posts
    467 Views
    C
    I think the only max would be the size of the file. Aside from the sound playing past the end of the simulation. I might be able to fix that problem on Win but I dont know about Mac...
  • Varying With Key?

    4
    0 Votes
    4 Posts
    411 Views
    B
    my switch code, which I posted back in the toggle script discussion: if frame==1 then setVar("1",0);elsif key("up")==1 then getSetVar("1",1);elsif key("down")==getVar("1") then getSetVar("1",0);end; ...just posted it here because it might be useful, isn't really what you're looking for though.
  • Gearshifting with Variables?

    4
    0 Votes
    4 Posts
    461 Views
    K
    thanks but meanwhile i've found out in SP-wiki^^ my code so far: if frame==1;setVar("acc",0.5);end; if key("a")==1;setVar("acc",0.6); elsif key("s")==1;setVar("acc",0.7); elsif key("d")==1;setVar("acc",0.8); elsif key("f")==1;setVar("acc",0.9); elsif key("g")==1;setVar("acc",1); elsif key("r")==1;setVar("acc",0.4); elsif key("e")==1;setVar("acc",0.5);end; getVar("acc")-0.5 with a,s,d,f,g for gears, e for empty and r for reverse
  • Some Problems with Servos

    15
    0 Votes
    15 Posts
    2k Views
    J
    Nice I did it [image: download?mid=5fc0f31b6b19a793e6712bbfb8ecba61&rtyp=lt&ctyp=other&ts=1240609568000] Beside sorry for my bad grammar. I am from Austria and German speaking
  • Coding Field

    9
    0 Votes
    9 Posts
    869 Views
    B
    yeah, you're right
  • New Toggle Script (Help Needed)

    13
    0 Votes
    13 Posts
    1k Views
    W
    I'll be happier than anyone if there's a simpler way, but the problem is detecting key presses as individual events. I believe that onButton/Key events will be added in the next version, or at least before SPIV; that'll make things a whole lot easier... but I'm more excited about the ability to detect what onTouch is hitting. For the next motorsketch, I'll (hopefully) be able to add AI opponents that follow routes through the track, attacking each other and the player, along with a lap counter!

Advertisement