MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / GetObb

Method GetObb

TombEngine/Game/items.cpp:48–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48BoundingOrientedBox 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
59std::vector<BoundingSphere> ItemInfo::GetSpheres() const
60{

Callers 7

InitializeMethod · 0.45
UpdateMethod · 0.45
EnableMethod · 0.45
AssignSectorsMethod · 0.45
GetLosCollisionFunction · 0.45
TestMethod · 0.45

Calls 4

GetFrameInterpDataFunction · 0.85
LerpFunction · 0.85
ToQuaternionMethod · 0.45
ToVector3Method · 0.45

Tested by 2

TestMethod · 0.36