xvelocity += collide.directional_velocity/2*cos(2*PI*((360-(180+direction(x,y,collide.x,collide.y))/360)));
yvelocity += collide.directional_velocity/2*sin(2*PI*((360-(180+direction(x,y,collide.x,collide.y))/360)));
Game A Gogo wrote:
- Code: Select all
xvelocity += collide.directional_velocity/2*cos(2*PI*((360-(180+direction(x,y,collide.x,collide.y))/360)));
yvelocity += collide.directional_velocity/2*sin(2*PI*((360-(180+direction(x,y,collide.x,collide.y))/360)));
Users browsing this forum: No registered users and 1 guest