Below is the code I'm using. Basically, it is a ball with the sprite of a tiny spaceship that rotates around a ring. It has a trail renderer attached and when I change the direction the trail comes out the top in the wrong direction. I need to know how to flip the ship to match the trail.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BallRotation : MonoBehaviour
{
[SerializeField] private float _speed;
private void FixedUpdate()
{
transform.Rotate(0, 0, _speed * Time.deltaTime);
}
public void ChangeDirection()
{
_speed = -_speed;
}
}