GLTF 2.0 support, Updated Scripting, Fixed point light shadowing, Added editor focus camera

This commit is contained in:
antopilo
2021-09-06 22:28:54 -04:00
parent a6823ba2fa
commit 61e54c5a46
12 changed files with 184 additions and 78 deletions

View File

@@ -43,7 +43,8 @@ class Scene {
foreign static GetScript_(e)
foreign static GetTranslation_(e)
foreign static SetTranslation_(e, x, y, z)
//foreign static SetRotation_(e, x, y, z)
foreign static SetRotation_(e, x, y, z)
foreign static GetRotation_(e)
//foreign static SetScale_(e, x, y, z)
// Light
@@ -101,6 +102,15 @@ class TransformComponent {
Scene.SetTranslation_(_entityId, t.x, t.y, t.z)
}
GetRotation() {
var result = Scene.GetRotation_(_entityId)
return Vector3.new(result[0], result[1], result[2])
}
SetRotation(t) {
Scene.SetRotation_(_entityId, t.x, t.y, t.z)
}
}
class Light {