Fragen im Vorstellungsgespräch bei Naughty Dog: A player cannot move up a slo... | Glassdoor.de

Frage im Vorstellungsgespräch

Game Designer-Vorstellungsgespräch

A player cannot move up a slope with an angle > 45 degrees

 , how do you check if the slope is too steep?
Antwort

Antwort im Vorstellungsgespräch

2 Antworten

0

Check the angle between the two vectors being the players forward direction lets call it A, and the direction of the slope lets call it B. angle = cos-1( A dot B / magnitude of A * magnitude of B).

Anonym am 22.06.2020
0

Check the angle between the two vectors being the players forward direction lets call it A, and the direction of the slope lets call it B. angle = cos-1( A dot B / magnitude of A * magnitude of B). Check if the angle is greater than or less than 45 degrees.

Anonym am 22.06.2020

Antwort oder Kommentar posten

Um dies zu kommentieren, bitte anmelden oder Konto anlegen.