Use Vector3.UP as a default value for look_at's up vector
This commit is contained in:
parent
c0d01dcf61
commit
7d9ad2b845
7 changed files with 12 additions and 12 deletions
|
|
@ -183,8 +183,8 @@ public:
|
|||
//vs->light_set_shadow( lightaux, true );
|
||||
light = vs->instance_create2(lightaux, scenario);
|
||||
Transform lla;
|
||||
//lla.set_look_at(Vector3(),Vector3(1,-1,1),Vector3(0,1,0));
|
||||
lla.set_look_at(Vector3(), Vector3(-0.000000, -0.836026, -0.548690), Vector3(0, 1, 0));
|
||||
//lla.set_look_at(Vector3(),Vector3(1, -1, 1));
|
||||
lla.set_look_at(Vector3(), Vector3(0.0, -0.836026, -0.548690));
|
||||
|
||||
vs->instance_set_transform(light, lla);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue