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:
@@ -108,7 +108,7 @@ namespace Nuake {
|
||||
wrenGetSlotDouble(vm, 3));
|
||||
|
||||
float length = glm::length(v1);
|
||||
wrenSetSlotDouble(vm, 0, glm::length(v1));
|
||||
wrenSetSlotDouble(vm, 0, length);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user