Linear Velocity Confusion

Discussion in 'Buildbox General Discussion' started by Nicko1246, Jun 29, 2016.

  1. Nicko1246

    Nicko1246 Boxer

    Joined:
    Apr 30, 2016
    Messages:
    58
    Likes Received:
    4
    Why is it that when I set a platform to have a specific velocity to move downwards when the character collides with it, sometimes it will go down, but then other times it will go up?

    Also, I have two platforms right next to each other with the same linear velocity set to move downwards but one will down and one will go up.

    Thanks guys
     
  2. brakewind723

    brakewind723 Serious Boxer

    Joined:
    Oct 3, 2015
    Messages:
    583
    Likes Received:
    506
    If your platform is rotated this may be the case. The velocity will move relative to the rotation so if it is set to 0 you should expect normal results.
     
  3. Nicko1246

    Nicko1246 Boxer

    Joined:
    Apr 30, 2016
    Messages:
    58
    Likes Received:
    4
    None of my platforms are rotated so unfortunately that's not the issue
     
  4. brakewind723

    brakewind723 Serious Boxer

    Joined:
    Oct 3, 2015
    Messages:
    583
    Likes Received:
    506
    Can you screenshot the properties for me? Of the platform
     
  5. Nicko1246

    Nicko1246 Boxer

    Joined:
    Apr 30, 2016
    Messages:
    58
    Likes Received:
    4
  6. INKY

    INKY Avid Boxer

    Joined:
    May 13, 2016
    Messages:
    161
    Likes Received:
    67
    Oh I believe the squiggle area is a randomizer so it's doing exactly what your telling it to. Move the 6 to the left. That area is absolute
     
    Nicko1246 likes this.
  7. INKY

    INKY Avid Boxer

    Joined:
    May 13, 2016
    Messages:
    161
    Likes Received:
    67
  8. brakewind723

    brakewind723 Serious Boxer

    Joined:
    Oct 3, 2015
    Messages:
    583
    Likes Received:
    506
    Sorry for late replay, INKY is right behind the "squiggle" will make the values have a velocity moving anything from 0 to 6. Always put your numerals in front unless you want to achieve that function.
     
    Nicko1246 likes this.
  9. Nicko1246

    Nicko1246 Boxer

    Joined:
    Apr 30, 2016
    Messages:
    58
    Likes Received:
    4
    Thank you both very much! This worked.

    I was lost for a minute because the platform was still moving upwards but I realized I needed to make it a negative for it to go down. Much appreciated.
     
  10. Christoph

    Christoph Miniboss Boxer

    Joined:
    Oct 4, 2015
    Messages:
    2,807
    Likes Received:
    2,309
    Actually, if you have on the left 0 and on the right 6 it will move between -6 and 6 (it's a randomizer in both directions, minus and plus). That's why sometimes it went up and sometimes it went down.
     
    brakewind723 likes this.
  11. heathclose

    heathclose Miniboss Boxer

    Joined:
    Jan 28, 2016
    Messages:
    1,810
    Likes Received:
    1,026
    and also, using a negative scale will do funky things with direction... it will see it as "rotated"... something to keep in mind
     
  12. bahaa

    bahaa Boxer

    Joined:
    Jul 20, 2020
    Messages:
    86
    Likes Received:
    3
    how can you make a ball (enemy) move up and down
     
  13. HG-2018

    HG-2018 Avid Boxer

    Joined:
    Jun 18, 2018
    Messages:
    388
    Likes Received:
    220
     
    Jaro likes this.

Share This Page