mirror of
https://github.com/overte-org/overte.git
synced 2025-06-21 20:41:52 +02:00
adding check to see if near grabbing is ready
This commit is contained in:
parent
91f74aeb0a
commit
813c58a1fb
1 changed files with 10 additions and 0 deletions
|
@ -42,6 +42,16 @@ Script.include("/~/system/libraries/controllers.js");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
nearGrabName = this.hand === RIGHT_HAND ? "RightNearParentingGrabEntity" : "LeftNearParentingGrabEntity";
|
||||||
|
nearGrabModule = getEnabledModuleByName(nearGrabName);
|
||||||
|
if (nearGrabModule) {
|
||||||
|
return nearGrabModule.isReady(controllerData).active;
|
||||||
|
}
|
||||||
|
nearGrabName = this.hand === RIGHT_HAND ? "RightNearActionGrabEntity" : "LeftNearActionGrabEntity";
|
||||||
|
nearGrabModule = getEnabledModuleByName(nearGrabName);
|
||||||
|
if (nearGrabModule) {
|
||||||
|
return nearGrabModule.isReady(controllerData).active;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue