| 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 | { |