Fix unity build compilation

This commit is contained in:
SirLynix
2023-04-05 13:23:37 +02:00
committed by Jérôme Leclercq
parent d610baf920
commit 60ed70d3fd
2 changed files with 32 additions and 25 deletions

View File

@@ -350,6 +350,8 @@ namespace Nz
bool JoltPhysWorld3D::RaycastQuery(const Vector3f& from, const Vector3f& to, const FunctionRef<std::optional<float>(const RaycastHit& hitInfo)>& callback)
{
NAZARA_USE_ANONYMOUS_NAMESPACE
JPH::RRayCast rayCast;
rayCast.mDirection = ToJolt(to - from);
rayCast.mOrigin = ToJolt(from);