JoltPhysics3D: Add raycast hit normal

This commit is contained in:
SirLynix
2023-03-30 13:23:05 +02:00
committed by Jérôme Leclercq
parent 1387ac6e35
commit d697450a60
2 changed files with 21 additions and 9 deletions

View File

@@ -15,6 +15,7 @@
#include <NazaraUtils/FunctionRef.hpp>
#include <NazaraUtils/MovablePtr.hpp>
#include <atomic>
#include <optional>
#include <vector>
namespace JPH
@@ -63,6 +64,7 @@ namespace Nz
{
float fraction;
JoltRigidBody3D* hitBody = nullptr;
Vector3f hitNormal;
Vector3f hitPosition;
};