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

Function CanRunForward

TombEngine/Game/Lara/PlayerContext.cpp:268–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266 }
267
268 bool CanRunForward(const ItemInfo& item, const CollisionInfo& coll)
269 {
270 auto setup = GroundMovementSetupData
271 {
272 item.Pose.Orientation.y,
273 -MAX_HEIGHT, -STEPUP_HEIGHT, // NOTE: Bounds defined by run forward state.
274 false, true, false
275 };
276
277 return TestGroundMovementSetup(item, coll, setup);
278 }
279
280 bool CanRunBackward(const ItemInfo& item, const CollisionInfo& coll)
281 {

Callers 3

lara_as_idleFunction · 0.85
lara_as_turn_slowFunction · 0.85
lara_as_turn_fastFunction · 0.85

Calls 1

TestGroundMovementSetupFunction · 0.85

Tested by

no test coverage detected