Temporary physics bug fix (anchored parts not updating when moved)

This commit is contained in:
himdeez
2022-10-06 16:28:38 +03:00
parent f587d1d6db
commit a1b25d115a

View File

@@ -233,6 +233,12 @@ void PartInstance::setPosition(Vector3 pos)
{
position = pos;
setCFrame(CoordinateFrame(cFrame.rotation, pos));
if (anchored)
{
g_dataModel->getEngine()->deleteBody(this);
g_dataModel->getEngine()->createBody(this);
}
}
void PartInstance::setAnchored(bool anchored)