From b07c7cb6d1185340ba552300fc33a685590b6c22 Mon Sep 17 00:00:00 2001 From: Antoine Pilote Date: Thu, 10 Aug 2023 23:42:48 -0400 Subject: [PATCH] Added setTranslation with x, y, z in scripting api --- Editor/resources/Scripts/Scene.wren | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Editor/resources/Scripts/Scene.wren b/Editor/resources/Scripts/Scene.wren index 2cf02b7b..2511c6e5 100644 --- a/Editor/resources/Scripts/Scene.wren +++ b/Editor/resources/Scripts/Scene.wren @@ -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])