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

Method SphereCast

Source/Engine/Physics/Physics.cpp:308–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306}
307
308bool Physics::SphereCast(const Vector3& center, const float radius, const Vector3& direction, const float maxDistance, uint32 layerMask, bool hitTriggers)
309{
310 CHECK_RETURN_DEBUG(direction.IsNormalized(), false);
311 return DefaultScene->SphereCast(center, radius, direction, maxDistance, layerMask, hitTriggers);
312}
313
314bool Physics::SphereCast(const Vector3& center, const float radius, const Vector3& direction, RayCastHit& hitInfo, const float maxDistance, uint32 layerMask, bool hitTriggers)
315{

Callers

nothing calls this directly

Calls 1

IsNormalizedMethod · 0.45

Tested by

no test coverage detected