pc.RaycastResult
Object holding the result of a successful raycast hit.
Summary
Properties
| entity | The entity that was hit. |
| normal | The normal vector of the surface where the ray hit in world space. |
| point | The point at which the ray hit the entity in world space. |
Details
Constructor
RaycastResult(entity, point, normal)
Create a new RaycastResult.
Parameters
| 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. |