1. #1

    Unicycle

    Hey all!

    I'm currently building a skillgame in which the bike is a unicycle.

    But now I have problems with fixing it to the driving line. It rotates in every direction and I dont know how to fix it.
    I tried to physically connect some dummyblocks to it and set "fix to driving line" in their properties to true but the connections just started to bug arround.
    If it's not clear how it looks I will upload a video of it.
    Thanks a lot,

    Chilly
    Share this post

  2. #2
    Try attaching the wheel to a 2 axis slider with a physics joint (rotation) and ope everything else to the wheel.
    Share this post

  3. #3
    Dummy objects are unreliable
    Share this post

  4. #4
    Originally Posted by BMXBandit777 Go to original post
    Try attaching the wheel to a 2 axis slider with a physics joint (rotation) and ope everything else to the wheel.
    I tried that out but that happened:
    https://www.youtube.com/watch?v=abWl...ature=youtu.be
    it just buggs around although i set conection force to 50.
    Share this post

  5. #5
    are you sure you limited the movement and rotation in the right ways?
    connection strength should be enough at 2 or 1
    Share this post

  6. #6
    Just tried it and it doesn't work as I hoped - tried with slider and rotation joint on both sides, that worked a bit better but best results I've had so far is to use a sphere (variation 3) (turn phys on / lock to d/l / visability off/ phys type = contact response) then use an O.P.E. + vector object info source (object = ball) (OPE target =tyre[I used car wheel right)

    You can then use controller inputs and set value events to add rotation to tyre via O.P.E. --- add a second O.P.E. using same xyz (position only) and link that to an area effector to move the sphere via same controller inputs.

    Edit: just tried a few other tweaks and it works great - you can even add the unicycle body lean (forward/back) using another O.P.E. for the body with the same controller inputs and a couple more set value events + generic filters
    Share this post

  7. #7
    My brain hurts but I think I got it now.
    You want to use a sphere instead of the wheel an aply the force to it.
    Then just OPE the wheel with the informations from the sphere and physically attach the bodypart to the wheel.
    First of all: thats genious but I see a problem.
    The bodypart will not put any force on the sphere so the unicycle will not behave correct.
    if the body goes to the right the wheel will not go to the left.
    I hope you see the problem.
    Share this post

  8. #8
    No just start by OPEing the wheel to the xyz position co-ords (global) then using left n right controller inputs you can change the wheels rotation (local)

    The body (separate) can then be OPE'd (global) to either the wheel or sphere - set it to no contact - and give it it's own set of rotational limits - say 45 degrees either way (local)

    So as you push Right it does 3 things:

    1. Sets force for area effector
    2. Gives the wheel rotation
    3. Make the body lean right 45degrees

    Because the wheel and body are set to no contact they should have no effect on the sphere only the area effector has.

    Hope this makes sense
    Share this post

  9. #9
    Yeah but I want it to be a skillgame and how challenging could it be to balance an oped boddy?
    Share this post

  10. #10
    Ahhh ok didn't realise that's what you were going for - thought it was gonna be a rolling down a track sort of game
    Share this post