im programming the smash ball. how do i make it move around randomly without having to make 50 random paths?
Vector new_v = getAccelerometer();
if(abs(new_v.x-old_v.x) + abs(new_v.y-old_v.y) + abs(new_v.z-old_v.z) >= 0.8 ) // adjust the value as you see fit in testing
{
// shake occured
}
old_v=new_v;
Users browsing this forum: No registered users and 1 guest