Skip to content

Commit ac1ecb1

Browse files
authored
updated three-to-ammo version to 1.0.5 and rebuilt dist files (#68)
1 parent c5ccfb6 commit ac1ecb1

File tree

4 files changed

+143
-17
lines changed

4 files changed

+143
-17
lines changed

‎dist/aframe-physics-system.js‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12310,10 +12310,10 @@ const _finishCollisionShape = function (collisionShape, options, scale) {
1231012310
}
1231112311
collisionShape.localTransform = localTransform;
1231212312
};
12313-
const isObjectVisible = object => {
12313+
const isObjectVisibleUpToRoot = (object, root) => {
1231412314
if (!object.visible) return false;
12315-
if (object.parent) {
12316-
return isObjectVisible(object.parent);
12315+
if (object.parent && object.parent !== root) {
12316+
return isObjectVisibleUpToRoot(object.parent);
1231712317
}
1231812318
return true;
1231912319
};
@@ -12323,7 +12323,7 @@ const iterateGeometries = exports.iterateGeometries = function () {
1232312323
inverse.copy(root.matrixWorld).invert();
1232412324
root.traverse(mesh => {
1232512325
const transform = new THREE.Matrix4();
12326-
if (mesh.isMesh && mesh.name !== "Sky" && (options.includeInvisible || isObjectVisible(mesh))) {
12326+
if (mesh.isMesh && mesh.name !== "Sky" && (options.includeInvisible || isObjectVisibleUpToRoot(mesh, root))) {
1232712327
if (mesh === root) {
1232812328
transform.identity();
1232912329
} else {

‎dist/aframe-physics-system.min.js‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)