JoltPhysics3D: Allow raycast to return hit characters (and retrieve their entities)

This commit is contained in:
SirLynix
2023-12-07 16:45:14 +01:00
parent f2ab31cc4b
commit 6cbfb01243
12 changed files with 112 additions and 18 deletions

View File

@@ -27,8 +27,10 @@ namespace JPH
namespace Nz
{
class JoltAbstractBody;
class JoltCharacter;
class JoltCharacterImpl;
class JoltCollider3D;
class JoltPhysicsStepListener;
class JoltRigidBody3D;
@@ -75,7 +77,7 @@ namespace Nz
struct RaycastHit
{
float fraction;
JoltRigidBody3D* hitBody = nullptr;
JoltAbstractBody* hitBody = nullptr;
Vector3f hitNormal;
Vector3f hitPosition;
};