| 35 | } |
| 36 | |
| 37 | bool 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 | |
| 55 | void NpcAnimationHandler::Action_GoBackward() |
| 56 | { |
no outgoing calls
no test coverage detected