Бранимир Караџић 4 년 전
부모
커밋
3c9591d9f9
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      examples/common/bounds.cpp

+ 4 - 4
examples/common/bounds.cpp

@@ -1689,7 +1689,7 @@ bool overlap(const Disk& _disk, const Obb& _obb)
 
 bool overlap(const Obb& _obb, const Vec3& _pos)
 {
-	Srt srt = toSrt(_obb.mtx);
+	const Srt srt = toSrt(_obb.mtx);
 
 	Aabb aabb;
 	toAabb(aabb, srt.scale);
@@ -1702,7 +1702,7 @@ bool overlap(const Obb& _obb, const Vec3& _pos)
 
 bool overlap(const Obb& _obb, const Plane& _plane)
 {
-	Srt srt = toSrt(_obb.mtx);
+	const Srt srt = toSrt(_obb.mtx);
 
 	const Quaternion invRotation = invert(srt.rotation);
 	const Vec3 axis =
@@ -1720,7 +1720,7 @@ bool overlap(const Obb& _obb, const Plane& _plane)
 
 bool overlap(const Obb& _obb, const Capsule& _capsule)
 {
-	Srt srt = toSrt(_obb.mtx);
+	const Srt srt = toSrt(_obb.mtx);
 
 	Aabb aabb;
 	toAabb(aabb, srt.scale);
@@ -2086,7 +2086,7 @@ bool overlap(const Triangle& _triangle, const Disk& _disk)
 
 bool overlap(const Triangle& _triangle, const Obb& _obb)
 {
-	Srt srt = toSrt(_obb.mtx);
+	const Srt srt = toSrt(_obb.mtx);
 
 	Aabb aabb;
 	toAabb(aabb, srt.scale);