MCPcopy Create free account
hub / github.com/axmolengine/axmol / jump

Function jump

tests/cpp-tests/Source/NavMeshTest/NavMeshTest.cpp:214–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214Vec3 jump(const Vec3* pV1, const Vec3* pV2, float height, float t)
215{
216 Vec3 pOut;
217 pOut.x = pV1->x + t * (pV2->x - pV1->x);
218 pOut.y = pV1->y + t * (pV2->y - pV1->y);
219 pOut.z = pV1->z + t * (pV2->z - pV1->z);
220 pOut.y += height * sinf((float)M_PI * t);
221 return pOut;
222}
223
224void NavMeshBaseTestDemo::moveAgents(const ax::Vec3& des)
225{

Callers 2

applyImpulseFunction · 0.85
moveAgentsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected