Skip to content

Commit

Permalink
Revert "Add warning for negative scale when creating interactables bo…
Browse files Browse the repository at this point in the history
…unds"

This reverts commit c23b7d4.
  • Loading branch information
Exairnous committed Nov 7, 2024
1 parent babb4a2 commit 7241b18
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/bit-systems/interactable-system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,9 @@ export function interactableSystem(world: HubsWorld) {
// If it has media frame collision mask, it needs to have content bounds
if (hasMesh && Rigidbody.collisionFilterMask[eid] & COLLISION_LAYERS.MEDIA_FRAMES) {
const box = getBox(obj, obj);
if (!box.isEmpty()) {
box.getSize(tmpVector);
addComponent(world, MediaContentBounds, eid);
MediaContentBounds.bounds[eid].set(tmpVector.toArray());
} else {
console.error(`Couldn't create content bounds for entity ${eid}. It seems to be empty or have negative scale.`);
}
box.getSize(tmpVector);
addComponent(world, MediaContentBounds, eid);
MediaContentBounds.bounds[eid].set(tmpVector.toArray());
}
});
}

0 comments on commit 7241b18

Please sign in to comment.