Help with some Gravity Code
Posted: Wed Apr 12, 2006 2:27 pm
Here is what i am doing. I have setup 4 actors around the screen to act as invisible walls. I have one actor in the box and have setup physical response collisions with all 4 walls. I want this to react in a way that it is going fast (around 10 to 20) as it is created, but from than on just react to the settings i put in the physical response. so that its like your looking down on a box and you throw a marble in. I am having a problem programming the yvelocity and xvelocity so that it has an initial speed of 10 but than it can slow down or speed up based solely on the reactions to walls and other actors. Also in the future i want the x and y velocity's to at least "appear" random.