Made anchoring togglable in play mode

This commit is contained in:
Vulpovile
2022-10-02 16:44:59 -07:00
parent 8c47024960
commit df77572fe7
5 changed files with 20 additions and 8 deletions

View File

@@ -141,11 +141,11 @@ void XplicitNgine::createBody(PartInstance* partInstance, float stepSize)
//printf("[XplicitNgine] Created Body for PartInstance\n");
if(!partInstance->anchored)
if(!partInstance->isAnchored())
dGeomSetBody(partInstance->physGeom[0], partInstance->physBody);
} else {
if(!partInstance->anchored)
if(!partInstance->isAnchored())
{
const dReal* physPosition = dBodyGetPosition(partInstance->physBody);