afritz1 / OpenTESArena

Open-source re-implementation of The Elder Scrolls: Arena.
MIT License
1k stars 68 forks source link

Implement better collision code #165

Closed afritz1 closed 3 days ago

afritz1 commented 4 years ago

There are enough objects in the world now that it seems reasonable to start looking at collision code.

The current collision code is very barebones and was written to only stop the player from going through walls (more precisely: non-air voxels).

To do:

At this point I don't want to mimic the original game's physics exactly since it seems kind of funky, like being magnetically pulled to the center of a voxel when falling into a pit. Will re-evaluate once better collision code is in.

Places of note:

afritz1 commented 3 months ago

Evaluating bringing Jolt Physics into the engine soon. That should handle most of these things eventually.

afritz1 commented 3 days ago

Merged Jolt Physics integration. Far from perfect atm but it's enough for testing the game.