JoltPhysics3D: Add RaycastQuery and RaycastQueryFirst

This commit is contained in:
SirLynix
2023-03-25 13:53:44 +01:00
committed by Jérôme Leclercq
parent 707a486e74
commit b3595178a1
6 changed files with 134 additions and 34 deletions

View File

@@ -53,6 +53,8 @@ namespace Nz
m_bodyIndex(object.m_bodyIndex),
m_world(object.m_world)
{
m_body->SetUserData(SafeCast<UInt64>(reinterpret_cast<std::uintptr_t>(this)));
object.m_body = nullptr;
object.m_bodyIndex = std::numeric_limits<UInt32>::max();
}
@@ -333,6 +335,8 @@ namespace Nz
m_geom = std::move(object.m_geom);
m_world = object.m_world;
m_body->SetUserData(SafeCast<UInt64>(reinterpret_cast<std::uintptr_t>(this)));
object.m_body = nullptr;
object.m_bodyIndex = std::numeric_limits<UInt32>::max();