Temporary physics bug fix (anchored parts not updating when moved)
This commit is contained in:
@@ -233,6 +233,12 @@ void PartInstance::setPosition(Vector3 pos)
|
|||||||
{
|
{
|
||||||
position = pos;
|
position = pos;
|
||||||
setCFrame(CoordinateFrame(cFrame.rotation, pos));
|
setCFrame(CoordinateFrame(cFrame.rotation, pos));
|
||||||
|
|
||||||
|
if (anchored)
|
||||||
|
{
|
||||||
|
g_dataModel->getEngine()->deleteBody(this);
|
||||||
|
g_dataModel->getEngine()->createBody(this);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void PartInstance::setAnchored(bool anchored)
|
void PartInstance::setAnchored(bool anchored)
|
||||||
|
|||||||
Reference in New Issue
Block a user