Physics3D/RigidBody3D: Fix collisions after setting null collider
This commit is contained in:
@@ -205,7 +205,10 @@ namespace Nz
|
||||
const JPH::Shape* shape;
|
||||
m_geom = std::move(geom);
|
||||
if (m_geom)
|
||||
{
|
||||
m_body->SetIsSensor(false);
|
||||
shape = m_geom->GetShapeSettings()->Create().Get();
|
||||
}
|
||||
else
|
||||
{
|
||||
m_body->SetIsSensor(true);
|
||||
|
||||
Reference in New Issue
Block a user