Code cleanup

This commit is contained in:
Antoine Pilote
2023-08-01 15:15:36 -04:00
parent f54d64c6dd
commit f7398d0224
2 changed files with 3 additions and 1 deletions

View File

@@ -331,7 +331,7 @@ namespace Nuake
{
// Create jolt ray
const auto& fromJolt = JPH::Vec3(from.x, from.y, from.z);
const auto& toJolt = JPH::Vec3(to.x, to.y, to.z);
const auto& toJolt = JPH::Vec3(to.x , to.y, to.z);
JPH::RayCast ray { fromJolt, toJolt - fromJolt };
JPH::AllHitCollisionCollector<JPH::RayCastBodyCollector> collector;
_JoltPhysicsSystem->GetBroadPhaseQuery().CastRay(ray, collector);

View File

@@ -26,6 +26,8 @@ namespace Nuake
Source = newSource;
ProgramId = newProgramId;
return true;
}
// Bind the shader