MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / RayCast

Method RayCast

Source/Engine/Physics/Physics.cpp:272–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270}
271
272bool Physics::RayCast(const Vector3& origin, const Vector3& direction, const float maxDistance, uint32 layerMask, bool hitTriggers)
273{
274 CHECK_RETURN_DEBUG(direction.IsNormalized(), false);
275 return DefaultScene->RayCast(origin, direction, maxDistance, layerMask, hitTriggers);
276}
277
278bool Physics::RayCast(const Vector3& origin, const Vector3& direction, RayCastHit& hitInfo, const float maxDistance, uint32 layerMask, bool hitTriggers)
279{

Callers

nothing calls this directly

Calls 1

IsNormalizedMethod · 0.45

Tested by

no test coverage detected