I have my player (which is a ship) moving around on the x, y axis off the ground so it looks like it is flying through space but it does not look legit if there is no bobbing while it is idle in space. I would like it to just move ever so slightly like between 10.0 and 10.1 to get the feel like it’s hovering in space rather then locked into place but when I push forward the bouncing stops
if you want it to look natural you can always use a sine function to make it over on Y axis based on X time
http://jwilson.coe.uga.edu/EMAT6680Su07/Singer/Assignment%201/sine%20graph.html
and you could do something like this code where Y is your localPosition.Y and X = Time.DeltaTime
float y normalHeight = something;
void update()
{
if(state == state.Idle)
{
transform.localPosition = new Vector3(transform.localPosition.x, normalHeight + (theSineFormulaYouLike * Time.DeltaTime), transform.localPosition.y);
}
}