mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-27 16:17:12 +03:00
GLTF 2.0 support, Updated Scripting, Fixed point light shadowing, Added editor focus camera
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user