| 1998 | } |
| 1999 | |
| 2000 | bool TerrainPatch::RayCast(const Vector3& origin, const Vector3& direction, float& resultHitDistance, float maxDistance) const |
| 2001 | { |
| 2002 | CHECK_RETURN_DEBUG(direction.IsNormalized(), false); |
| 2003 | if (_physicsShape == nullptr) |
| 2004 | return false; |
| 2005 | Vector3 shapePos; |
| 2006 | Quaternion shapeRot; |
| 2007 | PhysicsBackend::GetShapePose(_physicsShape, shapePos, shapeRot); |
| 2008 | return PhysicsBackend::RayCastShape(_physicsShape, shapePos, shapeRot, origin, direction, resultHitDistance, maxDistance); |
| 2009 | } |
| 2010 | |
| 2011 | bool TerrainPatch::RayCast(const Vector3& origin, const Vector3& direction, float& resultHitDistance, Vector3& resultHitNormal, float maxDistance) const |
| 2012 | { |
nothing calls this directly
no test coverage detected