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

Method getIntersectionPoint

core/3d/Terrain.cpp:512–523  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

510}
511
512ax::Vec3 Terrain::getIntersectionPoint(const Ray& ray) const
513{
514 Vec3 collisionPoint;
515 if (getIntersectionPoint(ray, collisionPoint))
516 {
517 return collisionPoint;
518 }
519 else
520 {
521 return Vec3(0, 0, 0);
522 }
523}
524
525bool Terrain::getIntersectionPoint(const Ray& ray_, Vec3& intersectionPoint) const
526{

Callers 3

onTouchEndMethod · 0.80
onTouchesEndMethod · 0.80

Calls 8

Vec3Function · 0.50
Vec2Function · 0.50
getNormalizedMethod · 0.45
findMethod · 0.45
endMethod · 0.45
lengthMethod · 0.45
insertMethod · 0.45

Tested by 2

onTouchEndMethod · 0.64
onTouchesEndMethod · 0.64