Falco Engine 3.9.0.1 (beta)
RaycastHit.cs
Go to the documentation of this file.
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Threading.Tasks;
6
7namespace FalcoEngine
8{
9 public struct RaycastHit
10 {
14 public bool hasHit;
15
20
25
30 }
31}
Vector3 worldNormal
The normal of the surface the ray hit
Definition: RaycastHit.cs:29
Rigidbody rigidbody
The rigidbody that was hit
Definition: RaycastHit.cs:19
Vector3 hitPoint
The impact point in world space where the ray hit the collider
Definition: RaycastHit.cs:24
bool hasHit
Is the ray has any intersection with geometry or not
Definition: RaycastHit.cs:14