Skip to content

Commit

Permalink
Minor fix to tiny entity collider sizes.
Browse files Browse the repository at this point in the history
  • Loading branch information
afritz1 committed Dec 15, 2024
1 parent d4aa22c commit 7d4b81c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenTESArena/src/Entities/EntityChunkManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ namespace
JPH::BodyInterface &bodyInterface = physicsSystem.GetBodyInterface();

const double capsuleHalfTotalHeight = colliderHeight * 0.50;
const double capsuleRadius = std::min(colliderHeight, 0.20);
const double capsuleRadius = std::min(capsuleHalfTotalHeight, 0.20);
const double capsuleCylinderHeight = std::max(colliderHeight - (capsuleRadius * 2.0), 0.0);
const double capsuleCylinderHalfHeight = capsuleCylinderHeight * 0.50;
DebugAssert(capsuleCylinderHalfHeight >= 0.0);
Expand Down

0 comments on commit 7d4b81c

Please sign in to comment.