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

Function CanWalkBackward

TombEngine/Game/Lara/PlayerContext.cpp:303–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301 }
302
303 bool CanWalkBackward(const ItemInfo& item, const CollisionInfo& coll)
304 {
305 auto setup = GroundMovementSetupData
306 {
307 short(item.Pose.Orientation.y + ANGLE(180.0f)),
308 STEPUP_HEIGHT, -STEPUP_HEIGHT // NOTE: Bounds defined by walk backward state.
309 };
310
311 return TestGroundMovementSetup(item, coll, setup);
312 }
313
314 static bool TestSidestep(const ItemInfo& item, const CollisionInfo& coll, bool isGoingRight)
315 {

Callers 3

lara_as_idleFunction · 0.85
lara_as_turn_slowFunction · 0.85
lara_as_turn_fastFunction · 0.85

Calls 2

ANGLEFunction · 0.85
TestGroundMovementSetupFunction · 0.85

Tested by

no test coverage detected