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

@@ -9,11 +9,12 @@ namespace Nuake {
std::string Script;
unsigned int mModule = 0;
Ref<WrenScript> mWrenScript;
Ref<WrenScript> mWrenScript = nullptr;
void LoadScript(const std::string& path)
{
Ref<Nuake::File> nuakeFile = Nuake::FileSystem::GetFile(Script);
Script = path;
Ref<Nuake::File> nuakeFile = Nuake::FileSystem::GetFile(path);
mWrenScript = CreateRef<Nuake::WrenScript>(nuakeFile, true);
auto modules = mWrenScript->GetModules();
if (modules.size() > 0)