#include <IntersectorInterface.h>
Inherits AzFramework::RenderGeometry::IntersectionNotifications.
Public Types | |
using | BusIdType = EntityContextId |
Public Types inherited from AzFramework::RenderGeometry::IntersectionNotifications | |
using | BusIdType = EntityContextId |
Public Member Functions | |
AZ_RTTI (IntersectorInterface, "{2DE6434E-7BD3-4364-A53E-EB31BC42FE4F}") | |
virtual RayResult | RayIntersect (const RayRequest &ray)=0 |
Public Member Functions inherited from AzFramework::RenderGeometry::IntersectionNotifications | |
virtual void | OnEntityConnected (AZ::EntityId entityId)=0 |
virtual void | OnEntityDisconnected (AZ::EntityId entityId)=0 |
virtual void | OnGeometryChanged (AZ::EntityId entityId)=0 |
Static Public Attributes | |
static const AZ::EBusHandlerPolicy | HandlerPolicy = AZ::EBusHandlerPolicy::Single |
static const AZ::EBusAddressPolicy | AddressPolicy = AZ::EBusAddressPolicy::ById |
Static Public Attributes inherited from AzFramework::RenderGeometry::IntersectionNotifications | |
static const AZ::EBusAddressPolicy | AddressPolicy = AZ::EBusAddressPolicy::ById |
Listen by EntityContext id. | |
Interface for geometry Intersector Bus, an intersector is responsible of retrieving a performant render geometry intersection against components that implement the IntersectionRequests interface. There can be only one intersector per entity context Usage: Raycast against editor entity geometry: IntersectorBus::EventResult(result, editorContextId, &IntersectorInterface::RayIntersect, ray);
Raycast against all entities AZ::EBusReduceResult<RayResult, RayResultClosestAggregator> rayResult; IntersectorBus::BroadCastResult(rayResult, &IntersectorInterface::RayIntersect, ray);