Added lookat

This commit is contained in:
Antoine Pilote
2023-07-12 16:10:20 -04:00
parent a466065ac6
commit 8a8db47f6c
4 changed files with 69 additions and 1 deletions

View File

@@ -44,6 +44,7 @@ class Scene {
foreign static GetTranslation_(e)
foreign static SetTranslation_(e, x, y, z)
foreign static SetRotation_(e, x, y, z)
foreign static SetLookAt_(e, x, y, z)
foreign static GetRotation_(e)
//foreign static SetScale_(e, x, y, z)
@@ -111,6 +112,9 @@ class TransformComponent {
Scene.SetRotation_(_entityId, t.x, t.y, t.z)
}
SetLookAt(t) {
Scene.SetLookAt_(_entityId, t.x, t.y, t.z)
}
}
class Light {