feat(ship-3d): look-at dinàmic, naus alineades amb el path (punta+cul)
This commit is contained in:
@@ -46,6 +46,10 @@ namespace Title {
|
||||
float frequency_y{0.0F};
|
||||
|
||||
Graphics::Mesh3D mesh;
|
||||
// Vector mundial cap a on apunta el front del shape. Recalculat a cada
|
||||
// transició d'estat perquè draw() oriente la nau (look-at) en la
|
||||
// direcció del seu path actual.
|
||||
Vec3 forward_dir{.x = 0.0F, .y = 0.0F, .z = 1.0F};
|
||||
bool visible{false};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user