Skip to content
This repository has been archived by the owner on Jun 29, 2019. It is now read-only.

Tangentes parfois inexistantes #22

Closed
gabrielhdt opened this issue Jan 18, 2017 · 3 comments
Closed

Tangentes parfois inexistantes #22

gabrielhdt opened this issue Jan 18, 2017 · 3 comments
Labels

Comments

@gabrielhdt
Copy link
Owner

Le problème vient du calcul des tangentes: si start.x == end.x, alors un des points de contrôle risque d'être confondu avec le point de départ ou d'arrivée. Une solution est d'utiliser plus souvent les cubiques véritables.

@gabrielhdt
Copy link
Owner Author

le flyby waypoint devrait être choisi tel qu'il soit le plus proche du point de contrôle suivant s'il correspond au flyby associé au start; précédent s'il correspond au flyby du end.

@gabrielhdt gabrielhdt added the bug label Jan 18, 2017
@gabrielhdt
Copy link
Owner Author

Plus possibilité d'empêcher les waypoints de dépasser le rectangle formé par les flyover.

@gabrielhdt
Copy link
Owner Author

Corrigé via branche iss2, utilisation systématique de cubiques. Fly by appartient à l'intersection de la tangente et la sphère centrée sur le fly over waypoints[i] de rayon bagheera*norm(waypoints[i+ 1] - waypoints[i] (on prend le plus proche de waypoints[i + 1]).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant