LWJGL Forum

Programming => OpenGL => Topic started by: jeussa on February 06, 2016, 16:59:21

Title: Terrain Collision
Post by: jeussa on February 06, 2016, 16:59:21
Hi dere all,

I'm currently sort of stuck with height maps. Basically what I'm trying to do is to make a system that detects a player-surface collision. Now I'm aware there are these heightmap images, however they only provide a single Y value for each X and Z position. What I need is multiple Y values so I can for instance make a cave, or a house. What is the best way to detect such collisions?

Thanks for the time!
Title: Re: Terrain Collision
Post by: Kai on February 07, 2016, 00:01:33
Sounds like a general/arbitrary triangle soup/mesh.
Maybe jBullet (http://jbullet.advel.cz/) is something for you.