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

Function lara_col_pickup

TombEngine/Game/Lara/lara_objects.cpp:50–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50void lara_col_pickup(ItemInfo* item, CollisionInfo* coll)
51{
52 // HACK: Pickup state is shared between different animations, such as crawl, crouch
53 // and underwater, so we can't clearly define coarse collision height.
54 coll->Setup.Height = (int)(item->GetAabb().Extents.y * 2.0f);
55
56 LaraDefaultCollision(item, coll);
57 ShiftItem(item, coll);
58}
59
60// State: LS_PICKUP_FLARE (67)
61// Collision: lara_default_col()

Callers

nothing calls this directly

Calls 3

LaraDefaultCollisionFunction · 0.85
ShiftItemFunction · 0.85
GetAabbMethod · 0.45

Tested by

no test coverage detected