OpenTESArena icon indicating copy to clipboard operation
OpenTESArena copied to clipboard

Implement better collision code

Open afritz1 opened this issue 6 years ago • 1 comments

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:

  • [ ] Player collider (ideally a capsule since they need to be able to walk onto raised platforms)
  • [ ] Jumping
  • [ ] Falling
  • [ ] Colliders for every VoxelDataType (walls, raised platforms, diagonals, chasms, etc.)
  • [ ] Entity colliders (probably cylinders because their vertical position never changes)

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 avatar Dec 09 '19 01:12 afritz1

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

afritz1 avatar Aug 08 '24 01:08 afritz1

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

afritz1 avatar Nov 13 '24 04:11 afritz1