mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-15 20:08:54 +03:00
Update Nuake/src/Core/Physics/DynamicWorld.cpp
Co-authored-by: émeryc <emeryc.primeau@gmail.com>
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);
|
||||
|
||||
Reference in New Issue
Block a user