mirror of
https://github.com/mwpenny/portal64-still-alive.git
synced 2024-10-20 10:37:37 -04:00
Fix first portal wall clipping problem
This commit is contained in:
parent
d88499d6ca
commit
f612ba79fa
|
@ -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
|
||||||
|
|
Binary file not shown.
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue