Bouncing

cgalianocgaliano Member, PRO Posts: 21

Hi guys
I have a ball that bounces within 4 walls. Eventually the ball will start moving horizontally or vertically from one wall to the other and obviously will stay doing the same forever. Is there any way to correct the bouncing when that happens by somehow forcing the ball to take an angle?
Thanks.

Comments

  • SummationSummation Member, PRO Posts: 476

    @cgaliano I would do some testing as far as your actor's X and Y linear velocity is concerned. It's not that hard to make two actors, and have one display the ball's X velocity and the other, Y. You could have a rule that makes the ball move either in the X or Y direction as needed, if their respective velocities fall below a threshold you set.

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

    @cgaliano said:
    Hi guys
    I have a ball that bounces within 4 walls. Eventually the ball will start moving horizontally or vertically from one wall to the other and obviously will stay doing the same forever. Is there any way to correct the bouncing when that happens by somehow forcing the ball to take an angle?
    Thanks.

    Simply turn 'Friction' to 0.

  • SummationSummation Member, PRO Posts: 476

    @Socks said:
    Simply turn 'Friction' to 0.

    I read this and had this reaction.
    Nice one, @Socks

  • cgalianocgaliano Member, PRO Posts: 21

    I already have friction = 0. :(

  • tiger27tiger27 Member Posts: 127

    Try setting the Y-axis gravity to something like 1 or 5. So small that it dosen't matter, but I think it will still work.

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

    @cgaliano said:
    I already have friction = 0. :(

    Turn friction to 0 on all actors in the interaction/collision.

Sign In or Register to comment.