mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-15 20:08:54 +03:00
Added setTranslation with x, y, z in scripting api
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user