Fix invalid Rigidbody bounds if it has no shapes attached

This commit is contained in:
Wojciech Figat
2022-03-28 19:28:25 +02:00
parent 8e79529e4e
commit 0ca6e70b66
7 changed files with 72 additions and 123 deletions

View File

@@ -1396,7 +1396,7 @@ bool Actor::HasActorInChildren(Actor* a) const
bool Actor::IntersectsItself(const Ray& ray, float& distance, Vector3& normal)
{
return GetBox().Intersects(ray, distance, normal);
return _box.Intersects(ray, distance, normal);
}
Actor* Actor::Intersects(const Ray& ray, float& distance, Vector3& normal)