Physics3D/RigidBody3D: Fix collisions after setting null collider
This commit is contained in:
parent
7f5f7668ec
commit
055634e77c
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue