Spawned actor colliding with wall, how do I get it to move the other way?
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!
Comments
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.
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/
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.
Thank you so much!
You're welcome, hope it works out.