MCPcopy Create free account
hub / github.com/REGoth-project/REGoth / Action_GoForward

Method Action_GoForward

src/logic/NpcAnimationHandler.cpp:37–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37bool NpcAnimationHandler::Action_GoForward()
38{
39 /*// TODO: Check if there is enough space for the player
40 Math::float3 traceFrom = getController().getEntityTransform().Translation();
41 Math::float3 traceTo = traceFrom + getController().getDirection() * 0.5f;
42 Physics::RayTestResult result = m_World.getPhysicsSystem().raytrace(traceFrom, traceTo);
43
44 if(result.hasHit)
45 {
46 return false;
47 }*/
48
49 stopTurningAnimations();
50 startAni_Forward();
51
52 return true;
53}
54
55void NpcAnimationHandler::Action_GoBackward()
56{

Callers 2

playerUpdateMethod · 0.80
npcUpdateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected