PocketMine-MP 5.14.2 git-50e2c469a547a16a23b2dc691e70a51d34e29395
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 
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: