mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix calc_collsion_velocity_result for kinematic other body
This commit is contained in:
parent
ad32d7b6db
commit
3ea3836f84
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ static glm::vec3 calc_collsion_velocity_result(
|
|||
return vA;
|
||||
}
|
||||
if (glm::isinf(b.mass)) {
|
||||
return vA * -a.elasticity + vB;
|
||||
return vB - a.elasticity * (vA - vB);
|
||||
}
|
||||
const auto& mA = a.mass;
|
||||
const auto& mB = b.mass;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue