| 
    Open 3D Engine AzFramework API Reference
    2205.0
    
   O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry. 
   | 
 
Casts a ray from a starting pose along a direction returning objects that intersected with the ray. More...
#include <PhysicsSceneQueries.h>
Inherits AzPhysics::SceneQueryRequest.
Public Member Functions | |
| AZ_RTTI (RayCastRequest, "{53EAD088-A391-48F1-8370-2A1DBA31512F}", SceneQueryRequest) | |
  Public Member Functions inherited from AzPhysics::SceneQueryRequest | |
| AZ_RTTI (SceneQueryRequest, "{76ECAB7D-42BA-461F-82E6-DCED8E1BDCB9}") | |
Static Public Member Functions | |
| static void | Reflect (AZ::ReflectContext *context) | 
  Static Public Member Functions inherited from AzPhysics::SceneQueryRequest | |
| static void | Reflect (AZ::ReflectContext *context) | 
Public Attributes | |
| AZ_CLASS_ALLOCATOR_DECL | |
| float | m_distance = 500.0f | 
| The distance to cast along the direction.  | |
| AZ::Vector3 | m_start = AZ::Vector3::CreateZero() | 
| World space point where ray starts from.  | |
| AZ::Vector3 | m_direction = AZ::Vector3::CreateZero() | 
| World space direction (Should be normalized)  | |
| SceneQuery::HitFlags | m_hitFlags = SceneQuery::HitFlags::Default | 
| Query behavior flags.  | |
| SceneQuery::FilterCallback | m_filterCallback = nullptr | 
| Hit filtering function.  | |
| bool | m_reportMultipleHits = false | 
| flag to have the cast stop after the first hit or return all hits along the query.  | |
  Public Attributes inherited from AzPhysics::SceneQueryRequest | |
| AZ_CLASS_ALLOCATOR_DECL | |
| AZ::u64 | m_maxResults = 32 | 
| The Maximum results for this request to return, this is limited by the value set in the SceneConfiguration.  | |
| CollisionGroup | m_collisionGroup = CollisionGroup::All | 
| Collision filter for the query.  | |
| SceneQuery::QueryType | m_queryType = SceneQuery::QueryType::StaticAndDynamic | 
| Object types to include in the query.  | |
Casts a ray from a starting pose along a direction returning objects that intersected with the ray.
 1.8.17