Hi guys! ;D
I’m not very good at trig : and I’ve been reading up on some pretty useful stuff regarding sin and cos, etc.
I’m trying to make something move in circle motion but at the moment it moves really, really fast. I was thinking I need to use some speed variable but i’m not really sure how to do that with the trig code I have.
Code:
public void move(){
angle += 1;
x += (float) (20 * Math.sin(angle));
y += (float) (20 * Math.cos(angle));
}
Any help/resources would be appreciated thank you!