mattrdowney / planetaria

A Unity framework for Euclidean 2-sphere games (e.g. 2D virtual reality games) [quasi-MIT license]
Other
10 stars 2 forks source link

Possible velocity bug: Debris Noirs + engine #107

Closed mattrdowney closed 5 years ago

mattrdowney commented 5 years ago

In order to reproduce in Debris Noirs:

1) accelerate left for a long time (e.g. 30 seconds). 2) start accelerating up from now on (e.g. 30+ seconds).

You would expect that after a long time accelerating upwards (e.g. infinite) your velocity would shift virtually be straight upwards. This appears not to be the case (in fact at some point the velocity seems to start drifting back to the left).

mattrdowney commented 5 years ago

In Debris Noirs, I want the velocity perpendicular to the spaceship bearing to have a drag force applied, but before I add that feature, I want to fix this bug (if it really is a bug).

mattrdowney commented 5 years ago

Notably, moving straight up or straight down seems to be an unstable equilibrium (of sorts). E.g. add a tiny amount of left or right momentum and eventually you will be travelling (mostly) left or right.

mattrdowney commented 5 years ago

This was a camera issue. Fixed as of b83055d91f2b36586853a9f66a1ad23965bf16eb