lch32111 / ChanGameEngine

My personal 3D game engine
3 stars 1 forks source link

Collision Detection #11

Open lch32111 opened 4 years ago

lch32111 commented 4 years ago

I'm studying Collision Detection Again!

The resources are "Collision Detection in Interactive 3D Environments" "Real Time Collision Detection"

On this way, I wanna try to add my math library. I did try a few of times to make my math classes. But I think doing the important thing again will be helpful for me later.

So, I'm gonna make a test bed for experimenting lots of collision detection codes. It will look like box2d test bed.

I hope I can finalize this one.

lch32111 commented 4 years ago

on ad1bcefe98ceaf8a1f90cdbdc04004ccc43f8f56

I added the first bed for collision detection with spheres. I'm trying to develop my engine, But I'm also developing a game engine in company.

So This kind of try will give me some motivation to keep myself on this project

first bed

lch32111 commented 4 years ago

I'm implementing my math library. So I want to cut the dependency of glm. One day, I will remove all of the glm code and then, I will change my math base on my own library.

lch32111 commented 4 years ago

on https://github.com/lch32111/ChanGameEngine/commit/f0ba9e268efbfc14cc5f6402c01f707fc40ab976

I fixed the intersection between ray and sphere

the test gif is this: raysphereintersection