Hi again, im getting this error and i dont know why?
possible loss of precision
found :double; required: float
These are the variables:
This is the code i get the error:
The error is marked at * speed;
public float speed = 10; public float angle = 30;
private void SetPosition()
{
float delta_x = Math.cos(angle) * speed;
float delta_y = Math.sin(angle) * speed;
setLocation(getX() + delta_x,getY() + delta_y);
}

