circular orbits using c_move?

Posted By: hungryhobo

circular orbits using c_move? - 01/06/10 00:34

hello, I have programmed an object to orbit around another object using the following method.

entity.x = 100*sin(angle);
...
angle += 1;

this is great but it doesnt work with collision detection.
how can i use ent_move to do the same thing?

help needed urgently..
Posted By: Superku

Re: circular orbits using c_move? - 01/07/10 15:45


temp.x = 100*sin(angle);
...
angle += 1*time_step;

now move entity to temp vector with c_/ent_move
© 2024 lite-C Forums