Wake and Sleep function

Discussion in 'Technical Discussion' started by David D, Sep 29, 2015.

  1. David D

    David D Boxer

    Joined:
    Sep 28, 2015
    Messages:
    91
    Likes Received:
    37
    Hi All
    Need some assistance here. I am having trouble getting the sleep function to work. I'm setting a platform object to fall from the top of the screen using the wake from distance setting and I want it to stop half way in the screen instead of just falling all the way down. However, the sleep per distance setting isn't stopping the object from falling, as it is just falling all the way down. I'm probably missing something simple but can't figure out what. Any help is appreciated. Thanks!
     
  2. Kamil Kucma

    Kamil Kucma Boxer

    Joined:
    Sep 25, 2015
    Messages:
    62
    Likes Received:
    41
    I guess your platform has movement type set to physics. You should set it to fixed and add desired linear velocity to it;-)
     
    Jamie likes this.
  3. david_tanner

    david_tanner Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1
    Likes Received:
    0
    I think you can just use logic, set it to fall then when it hits the logic it sets(replaces) the linear velocity to zero.
     
  4. David D

    David D Boxer

    Joined:
    Sep 28, 2015
    Messages:
    91
    Likes Received:
    37
    Note to self, sleep function does not work if the movement type is set to physics. Lol. Thanks for the help!!
     
    Kamil Kucma and Jamie like this.

Share This Page