Sorry to ressurect this slightly older thread, I've been unable to use my internet for a long time. Thanks for the suggestion fantasyjam but i think what i want is slightly different.
What i want to do is similar to the movement that i made in my super speed example in the 'your creations' forum.
I want to update the X and Y components of movement every tick to give a controlled 'space' type movement. I can get the movement moving exactly how i want it to move, except i can't for the life of me code in the right collision code.
See with something like:
set angle of motion (0, 0, Xvariable, Yvariable)
set speed to distance (0, 0, Xvariable, Yvariable)
The movement works prefectly, until you collide with something, the ball/player just tries to keep going through the obstacle rather than bounce off because it's X and Y components of motion are fixed into variables rather than being updated upon a collision, meaning, so is the angle of motion.
What i would like (semi pseudo code):
Always:
set angle of motion (0, 0, Ball X component, Ball Y component)
When W(forward) is down:
set ball X component to ball X component + (cos(player angle) * AccelerationVariable)
set ball Y component to ball Y component + (sin(player angle) * AccelerationVariable)
If i could alter the ball movements X and Y components directly, just like i can in platform or physics, i would still be able to get the spacey type motion but bounces would work perfectly fine too because the ball behaviour works out which angle to bounce at and changes the X/Y components accordingly. It would also open up more avenues for advanced ball movement controls, like what you're doing, you could easily make multiple gravity wells.
I hope i made myself clear enough :S
Anyway, to summarise my post, I'm begging you Ashley to add set X/Y components to ball behaviour!!!!!!