Fix first portal wall clipping problem

This commit is contained in:
James Lambert 2023-02-13 08:59:07 -07:00
parent d88499d6ca
commit f612ba79fa
3 changed files with 3 additions and 3 deletions

View file

@ -84,8 +84,7 @@ Where `/home/james/Blender/blender-2.93.1-linux-x64` is the folder where Blender
## Current TODO list ## Current TODO list
- [ ] fix chell animation problem - [ ] fix chell animation problem (fixed itself, investigate)
- [ ] first portal wall
- [ ] sound effects for ball - [ ] sound effects for ball
-------------------------------------------------------- --------------------------------------------------------
- [ ] Skips audio sometimes - [ ] Skips audio sometimes
@ -96,6 +95,7 @@ Where `/home/james/Blender/blender-2.93.1-linux-x64` is the folder where Blender
- [ ] Presort portal gun polygon order - [ ] Presort portal gun polygon order
- [ ] Signage should not always be on - [ ] Signage should not always be on
- [ ] Camera shake - [ ] Camera shake
- [x] first portal wall
- [x] the cube bounces the player - [x] the cube bounces the player
- [x] break constraint after large distance - [x] break constraint after large distance
- [x] prevent objects from pushing the player around - [x] prevent objects from pushing the player around

View file

@ -15,7 +15,7 @@ int isOutsideFrustrum(struct FrustrumCullingInformation* frustrum, struct Boundi
closestPoint.y = normal->y < 0.0f ? boundingBox->minY : boundingBox->maxY; closestPoint.y = normal->y < 0.0f ? boundingBox->minY : boundingBox->maxY;
closestPoint.z = normal->z < 0.0f ? boundingBox->minZ : boundingBox->maxZ; closestPoint.z = normal->z < 0.0f ? boundingBox->minZ : boundingBox->maxZ;
if (planePointDistance(&frustrum->clippingPlanes[i], &closestPoint) < 0.0f) { if (planePointDistance(&frustrum->clippingPlanes[i], &closestPoint) < 0.00001f) {
return 1; return 1;
} }
} }