mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-15 20:08:54 +03:00
Code cleanup
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -26,6 +26,8 @@ namespace Nuake
|
||||
|
||||
Source = newSource;
|
||||
ProgramId = newProgramId;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Bind the shader
|
||||
|
||||
Reference in New Issue
Block a user