I am working on collision detection for my game 3D game using OpenGL with LWJGL. All models have a list of collision face objects containing the vertex position and face normal. How would I check if a face is being intersected by an AABB (the collision box of the player)? I’ve thought of checking if […]
Categories
Check if face is in bounding box
- Post author By Gaming World
- Post date February 11, 2021
- No Comments on Check if face is in bounding box
- Tags but this wouldn't work for faces that are much larger than the player, float yNorm) { super(); this.v1 = v1; this.v2 = v2; this.v3 = v3; this.yNorm = yNorm; } }, I am working on collision detection for my game 3D game using OpenGL with LWJGL. All models have a list of collision face objects containing, such as a large wall. The CollisionFace class: import org.lwjgl.util.vector.Vector3f; public class CollisionFace { private Vector3f v, Vector3f v2, Vector3f v3