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}") | |
| SceneQueryRequest (RequestType requestType) | |
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 | |
| RequestType | m_requestType = RequestType::Undefined |
| AZ::u32 | 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. | |
Additional Inherited Members | |
Public Types inherited from AzPhysics::SceneQueryRequest | |
| enum class | RequestType : AZ::u8 { Undefined = 0 , Raycast , Shapecast , Overlap } |
Casts a ray from a starting pose along a direction returning objects that intersected with the ray.