1. #1

    Sliders and rotational hinges

    Need help i want the slider to push a object up and then when it reaches the top i want it to rotate from the hinge.If any one can help me or tell me a different way to get this effect Thanks Also how to make area effector suck instead of push
    Share this post

  2. #2

    Re: Sliders and rotational hinges

    You will need two physics joints, a slider and a rotational. And check the invert box in the area effector options.
    Share this post

  3. #3
    Just_Shogun's Avatar Community Developer
    Join Date
    Jan 2010
    Location
    Helsinki
    Posts
    665

    Re: Sliders and rotational hinges

    you've got a few options but without more details it's hard to say what would be best.

    Off the top of my head I'd think what you'll need is two hinges and some data sources, maybe some dummy objects as well. Here is what I would try first but it isn't necessarily the best way.

    -I'd start with two dummy objects (or any two appropriate objects) to make the slider. Slider goes up to designated height then stops.
    -Next I'd use another hinge to connect your object you want to rotate with the dummy object that slides up.
    -Now in the rotation hinge you have a few options to keep it from rotating, all of them require using data sources as value targets for different parameters. To keep it from spinng you could use either angular dampening or the rotation limits. For example you could tie angular dampening to a variable data source (set to 100), then when the object gets to the top use a set value to make the data source 0, now the hinge will be free to rotate as normal. Using the angular limits may be the better option but in that case you will need a few different data sources as well as finding the ideal value of the limits.
    -Finally if the want the object to rotate automatically activate the angular motor, also by using a data source as the value target for the motor checkbox (0=off 1=on)
    Share this post

  4. #4
    Just_Shogun's Avatar Community Developer
    Join Date
    Jan 2010
    Location
    Helsinki
    Posts
    665

    Re: Sliders and rotational hinges

    you've got a few options but without more details it's hard to say what would be best.

    Off the top of my head I'd think what you'll need is two hinges and some data sources, maybe some dummy objects as well. Here is what I would try first but it isn't necessarily the best way.

    -I'd start with two dummy objects (or any two appropriate objects) to make the slider. Slider goes up to designated height then stops.
    -Next I'd use another hinge to connect your object you want to rotate with the dummy object that slides up.
    -Now in the rotation hinge you have a few options to keep it from rotating, all of them require using data sources as value targets for different parameters. To keep it from spinng you could use either angular dampening or the rotation limits. For example you could tie angular dampening to a variable data source (set to 100), then when the object gets to the top use a set value to make the data source 0, now the hinge will be free to rotate as normal. Using the angular limits may be the better option but in that case you will need a few different data sources as well as finding the ideal value of the limits.
    -Finally if the want the object to rotate automatically activate the angular motor, also by using a data source as the value target for the motor checkbox (0=off 1=on)
    Share this post

  5. #5

    Re: Sliders and rotational hinges

    Thank every one for step by step helps
    Share this post