I’m working on a 2D space shooter and want a HUD indicator that points in the direction my ship currently has momentum in. My though process was to place a child sprite on my playerShip that has an arrow at one end. Then rotate that sprite based on the angle that the playerShip momentum is heading.
I’m aware my script is wrong, but can’t seem to find a way to go from here.
public GameObject playerShip;
void Update()
{
Vector3 angle = playerShip.transform.position;
transform.position = angle;
}