Panda3D
Loading...
Searching...
No Matches
Public Member Functions | List of all members
PhysxRaycastHit Class Reference

This structure captures results for a single raycast query. More...

#include "physxRaycastHit.h"

Public Member Functions

 PhysxRaycastHit (const NxRaycastHit hit)
 
float get_distance () const
 
LVector3f get_impact_normal () const
 
LPoint3f get_impact_pos () const
 
PhysxShapeget_shape () const
 
bool is_empty () const
 

Detailed Description

This structure captures results for a single raycast query.

See PhysxScene for raycasting methods.

Definition at line 28 of file physxRaycastHit.h.

Constructor & Destructor Documentation

◆ PhysxRaycastHit()

PhysxRaycastHit::PhysxRaycastHit ( const NxRaycastHit hit)
inline

Definition at line 17 of file physxRaycastHit.I.

◆ ~PhysxRaycastHit()

PhysxRaycastHit::~PhysxRaycastHit ( )
inline

Definition at line 26 of file physxRaycastHit.I.

Member Function Documentation

◆ get_distance()

float PhysxRaycastHit::get_distance ( ) const

Definition at line 58 of file physxRaycastHit.cxx.

◆ get_impact_normal()

LVector3f PhysxRaycastHit::get_impact_normal ( ) const

Definition at line 49 of file physxRaycastHit.cxx.

◆ get_impact_pos()

LPoint3f PhysxRaycastHit::get_impact_pos ( ) const

Definition at line 40 of file physxRaycastHit.cxx.

◆ get_shape()

PhysxShape * PhysxRaycastHit::get_shape ( ) const

Definition at line 30 of file physxRaycastHit.cxx.

◆ is_empty()

bool PhysxRaycastHit::is_empty ( ) const

Definition at line 21 of file physxRaycastHit.cxx.


The documentation for this class was generated from the following files: