Fixed wren api, packing into vec3

This commit is contained in:
Antoine Pilote
2023-07-28 13:11:24 -04:00
parent 5103101a0d
commit c637bd18ab
2 changed files with 12 additions and 3 deletions

View File

@@ -194,6 +194,7 @@ namespace Nuake
double x = wrenGetSlotDouble(vm, 2);
double y = wrenGetSlotDouble(vm, 3);
double z = wrenGetSlotDouble(vm, 4);
Entity ent = Entity((entt::entity)handle, Engine::GetCurrentScene().get());
auto& cam = ent.GetComponent<CameraComponent>();
cam.CameraInstance->SetDirection(Vector3(x, y, z));