PocketMine-MP 5.23.2 git-45917d495c14f3ce37bbf0848262ad8a470030f3
Loading...
Searching...
No Matches
pocketmine\math\RayTraceResult Class Reference
+ Collaboration diagram for pocketmine\math\RayTraceResult:

Public Member Functions

 __construct (public AxisAlignedBB $bb, public int $hitFace, public Vector3 $hitVector)
 
 getBoundingBox ()
 
 getHitFace ()
 
 getHitVector ()
 

Detailed Description

Class representing a ray trace collision with an AxisAlignedBB

Definition at line 29 of file RayTraceResult.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\math\RayTraceResult::__construct ( public AxisAlignedBB $bb,
public int $hitFace,
public Vector3 $hitVector )
Parameters
int$hitFaceone of the Facing::* constants

Definition at line 34 of file RayTraceResult.php.

Member Function Documentation

◆ getBoundingBox()

pocketmine\math\RayTraceResult::getBoundingBox ( )

Definition at line 40 of file RayTraceResult.php.

◆ getHitFace()

pocketmine\math\RayTraceResult::getHitFace ( )

Definition at line 44 of file RayTraceResult.php.

◆ getHitVector()

pocketmine\math\RayTraceResult::getHitVector ( )

Definition at line 48 of file RayTraceResult.php.


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