Bouncing Off Walls Only Works At Certain Angles?

I have 'blocks' spawning in and moving in a random direction. There are borders on all sides which they bounce off of if they collide with them. Everything is working fine except it seems that if they hit either border at a certain angle (generally <10 degrees at an estimate) they don't bounce off the border but instead stick to it and move back and forth, stuck to the edge of the border. Why is it that at a low angle they don't bounce off the wall in the same manner and what can I do to fix this?
Have put fixed rotation on the items and have put friction to 0 for the borders and the items.
Thanks!

Comments

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922

    Is the boarder in segments make sure everything is lined up to the pixel. Make sure the density of your wall matches the density of your squares too.

  • CharlieG97CharlieG97 Member Posts: 52

    @Lost_Oasis_Games said:
    Is the boarder in segments make sure everything is lined up to the pixel. Make sure the density of your wall matches the density of your squares too.

    Their density values are the same.

    What do you mean 'lined up'? The border is in 4 parts, one for each wall and they all connect with each other.

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922

    Are you on Windows or Mac?

  • CharlieG97CharlieG97 Member Posts: 52

    @Lost_Oasis_Games said:
    Are you on Windows or Mac?

    Windows

  • SocksSocks London, UK.Member Posts: 12,822

    @CharlieG97 said:
    Windows

    Can you post the rules for the actor that is bouncing off the walls.

  • CharlieG97CharlieG97 Member Posts: 52
    edited October 2015

    @Socks said:
    Can you post the rules for the actor that is bouncing off the walls.


    I have the constrain self.rotation to 0 because their rotation was changing on occasion when they hit the border, changing their speed and causing them to spin. The problem of them sticking to the walls occurred before this though anyway.

  • SocksSocks London, UK.Member Posts: 12,822
    edited October 2015

    @CharlieG97 said:

    Change 'relative to' in the Change Velocity behaviour, from Actor to Scene, and see if that helps.

  • CharlieG97CharlieG97 Member Posts: 52

    @Socks said:
    Change 'relative to' in the Change Velocity behaviour, from Actor to Scene, and see if that helps.

    Just tried that. Still occurs :/

Sign In or Register to comment.