Added setTranslation with x, y, z in scripting api

This commit is contained in:
Antoine Pilote
2023-08-10 23:42:48 -04:00
parent 03c18842f8
commit b07c7cb6d1

View File

@@ -132,6 +132,10 @@ class TransformComponent {
Scene.SetTranslation_(_entityId, t.x, t.y, t.z)
}
SetTranslation(x, y, z) {
Scene.SetTranslation_(_entityId, x, y, z)
}
GetRotation() {
var result = Scene.GetRotation_(_entityId)
return Vector3.new(result[0], result[1], result[2])