Skip to content

Commit cef5c67

Browse files
oopsie
1 parent 570698b commit cef5c67

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Native/Camera.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ export default class ClientCamera extends CameraEntity {
177177
const creations: Entity[] = [];
178178

179179
const fov = this.cameraData.values.FOV;
180-
const width = (1920 / fov) + ClientCamera.VISION_BUFFER;
181-
const height = (1080 / fov) + ClientCamera.VISION_BUFFER;
180+
const width = (1920 / fov) / 2 + ClientCamera.VISION_BUFFER;
181+
const height = (1080 / fov) / 2 + ClientCamera.VISION_BUFFER;
182182

183183
// TODO(speed)
184184
const entitiesNearRange = this.game.entities.collisionManager.retrieve(this.cameraData.values.cameraX, this.cameraData.values.cameraY, width, height);

0 commit comments

Comments
 (0)