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

Function ConstructRoughBox

TombEngine/Game/control/volume.cpp:52–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 }
51
52 BoundingOrientedBox ConstructRoughBox(ItemInfo& item, const CollisionSetupData& coll)
53 {
54 auto pBounds = GameBoundingBox(&item).ToBoundingOrientedBox(item.Pose);
55 auto pos = Vector3(item.Pose.Position.x, pBounds.Center.y, item.Pose.Position.z);
56 auto rot = item.Pose.Orientation.ToQuaternion();
57 return BoundingOrientedBox(pos, Vector3(coll.Radius, pBounds.Extents.y, coll.Radius), rot);
58 }
59
60 void HandleAllGlobalEvents(EventType type, Activator& activator)
61 {

Callers 1

TestVolumesFunction · 0.85

Calls 4

ToBoundingOrientedBoxMethod · 0.80
GameBoundingBoxClass · 0.70
Vector3Function · 0.50
ToQuaternionMethod · 0.45

Tested by 1

TestVolumesFunction · 0.68