Merge pull request #50682 from aaronfranke/basis-looking-at

Move code for looking_at to Basis
This commit is contained in:
Rémi Verschelde 2021-08-10 11:28:12 +02:00 committed by GitHub
commit 16d73fefdb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 52 additions and 55 deletions

View file

@ -184,7 +184,7 @@ public:
light = vs->instance_create2(lightaux, scenario);
Transform3D lla;
//lla.set_look_at(Vector3(),Vector3(1, -1, 1));
lla.set_look_at(Vector3(), Vector3(0.0, -0.836026, -0.548690));
lla.basis = Basis::looking_at(Vector3(0.0, -0.836026, -0.548690));
vs->instance_set_transform(light, lla);