Character controller now moving! 🏃‍♂️

- Added character controller transform syncing Jolt -> Scene
- Physic system code cleanup
- Fixed crash with WrenScript loading
- Fixed Normalize() returning NaN vector when lenght is 0
This commit is contained in:
Antoine Pilote
2023-07-04 03:09:52 -04:00
parent 95ffbdb6a9
commit 0d108bc44a
11 changed files with 134 additions and 36 deletions

View File

@@ -108,7 +108,7 @@ namespace Nuake {
wrenGetSlotDouble(vm, 3));
float length = glm::length(v1);
wrenSetSlotDouble(vm, 0, glm::length(v1));
wrenSetSlotDouble(vm, 0, length);
}
};
}

View File

@@ -77,7 +77,6 @@ namespace Nuake {
if (name == "Transform") result = ent.HasComponent<TransformComponent>();
if (name == "Light") result = ent.HasComponent<LightComponent>();
if (name == "QuakeMap") result = ent.HasComponent<QuakeMapComponent>();
if (name == "CharacterController")
{
result = ent.HasComponent<CharacterControllerComponent>();