mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-15 20:08:54 +03:00
Added back rotation script api
This commit is contained in:
@@ -365,9 +365,9 @@ namespace Nuake
|
||||
Entity ent = Entity((entt::entity)handle, Engine::GetCurrentScene().get());
|
||||
auto& transform = ent.GetComponent<TransformComponent>();
|
||||
// set the slots
|
||||
//wrenSetSlotDouble(vm, 1, transform.Rotation.x);
|
||||
//wrenSetSlotDouble(vm, 2, transform.Rotation.y);
|
||||
//wrenSetSlotDouble(vm, 3, transform.Rotation.z);
|
||||
wrenSetSlotDouble(vm, 1, transform.Rotation.x);
|
||||
wrenSetSlotDouble(vm, 2, transform.Rotation.y);
|
||||
wrenSetSlotDouble(vm, 3, transform.Rotation.z);
|
||||
|
||||
// Fill the list
|
||||
wrenSetSlotNewList(vm, 0);
|
||||
|
||||
Reference in New Issue
Block a user