Spawned actor colliding with wall, how do I get it to move the other way?

vlasovlaso Member, PRO Posts: 19

Hey guys, just wondering if I could get some help, I am fairly new to GameSalad and although looking through previous threads, I am still having trouble.

Currently my spawned actor collides with the scene wall and just stays there, I am trying to get it to switch direction and continue moving in the opposite direction.
For Example, A ball bouncing off the left wall and travelling to the right wall before again bouncing off. (They keep bouncing/changing directions)

Thank you for all the help! :smile:

Comments

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    Actors have a bunch of Physics settings, one of which is Bounciness. Try playing with the Bounciness numbers for both actors (ball and wall) to get the reactions you like.

  • vlasovlaso Member, PRO Posts: 19

    I have tried this in my actor, see image below, but it doesnt go the other way. (But it does work if I change it to touch instead of overlaps or collides)
    http://postimg.org/image/wnt74h3mt/

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    edited January 2015

    You are using Move Rules there, the best bet when working with the Physics Engine is to move your actors by using a Change Attribute Linear Velocity X or Y depending on your direction of movement. When you do that the physics engine will bounce, drag, etc. when your objects collide.

  • vlasovlaso Member, PRO Posts: 19

    Thank you so much!

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    You're welcome, hope it works out. :)

  • vlasovlaso Member, PRO Posts: 19
    edited January 2015

    :smile:

Sign In or Register to comment.