123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- namespace Rokid.UXR.Interaction {
- using UnityEngine;
-
- public interface ISurface
- {
-
-
-
- Transform Transform { get; }
-
-
-
-
-
-
-
-
- bool Raycast(in Ray ray, out SurfaceHit hit, float maxDistance = 0);
-
-
-
-
-
-
-
-
- bool ClosestSurfacePoint(in Vector3 point, out SurfaceHit hit, float maxDistance = 0);
- }
-
- public struct SurfaceHit
- {
-
-
-
- public Vector3 Point { get; set; }
-
-
-
-
- public Vector3 Normal { get; set; }
-
-
-
-
- public float Distance { get; set; }
- }
- }
|