Constructor
new RaycastResult(entity, point, normal)
Create a new RaycastResult
Parameters:
Name |
Type |
Description |
entity |
pc.Entity
|
The entity that was hit |
point |
pc.Vec3
|
The point at which the ray hit the entity in world space |
normal |
pc.Vec3
|
The normal vector of the surface where the ray hit in world space. |
Properties:
Name |
Type |
Description |
entity |
pc.Entity
|
The entity that was hit |
point |
pc.Vec3
|
The point at which the ray hit the entity in world space |
normal |
pc.Vec3
|
The normal vector of the surface where the ray hit in world space. |
- Source: