PocketMine-MP 5.21.2 git-b2aa6396c3cc2cafdd815eacc360e1ad89599899
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: