| 46 | } |
| 47 | |
| 48 | BoundingOrientedBox ItemInfo::GetObb() const |
| 49 | { |
| 50 | auto frameData = GetFrameInterpData(*this); |
| 51 | auto obb = BoundingOrientedBox(); |
| 52 | BoundingOrientedBox( |
| 53 | Vector3::Lerp(frameData.Keyframe0.Aabb.Center, frameData.Keyframe1.Aabb.Center, frameData.Alpha), |
| 54 | Vector3::Lerp(frameData.Keyframe0.Aabb.Extents, frameData.Keyframe1.Aabb.Extents, frameData.Alpha), |
| 55 | Vector4::UnitY).Transform(obb, 1.0f, Pose.Orientation.ToQuaternion(), Pose.Position.ToVector3()); |
| 56 | return obb; |
| 57 | } |
| 58 | |
| 59 | std::vector<BoundingSphere> ItemInfo::GetSpheres() const |
| 60 | { |