Hi, i've been working on a project and need some help. I'm trying to get an object to get a "inversed" direction when it hits the walls or the platform which you control. I linked a picture demonstrating what I want it to do at the bottom.
Is there anyone who has any tips on how this can be done? Right now it can come in from say the left and then bounces straight up with a 90 degree angle to the object.
I cannot find anything in the documentation about how this might be handled.
Sorry if this is a stupid question but I'm new to programming :) Grateful for all help!
How i want it to act: http://i56.tinypic.com/2ro451g.png