Open 3D Engine AzFramework API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AzFramework::RenderGeometry::RayResult Struct Reference

Result of intersection. More...

#include <GeometryIntersectionStructures.h>

Public Member Functions

 operator bool () const
 

Public Attributes

AZ::Vector3 m_worldPosition
 Hit position in world space.
 
AZ::Vector3 m_worldNormal
 Normal of the surface hit in world space.
 
AZ::Vector2 m_uv
 UV texture coordinates of the intersected geometry.
 
AZ::EntityComponentIdPair m_entityAndComponent
 Entity and component hit, for non-entity systems this can be invalid.
 
float m_distance = FLT_MAX
 Distance from ray start to hit collision, FLT_MAX if there is no hit.
 

Detailed Description

Result of intersection.


The documentation for this struct was generated from the following file: