添加插件
This commit is contained in:
26
Assets/Obi/Editor/Common/Utils/ObiRaycastHit.cs
Normal file
26
Assets/Obi/Editor/Common/Utils/ObiRaycastHit.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using UnityEngine;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Obi
|
||||
{
|
||||
public class ObiRaycastHit
|
||||
{
|
||||
|
||||
/// Distance from the Raycast origin to the point of impact.
|
||||
public float distance;
|
||||
/// The position in model space where a raycast intercepted a triangle.
|
||||
public Vector3 position;
|
||||
/// The normal in model space of the triangle that this raycast hit.
|
||||
public Vector3 normal;
|
||||
/// The triangle index of the hit face.
|
||||
public int triangle;
|
||||
|
||||
public ObiRaycastHit(float distance, Vector3 position, Vector3 normal, int triangle)
|
||||
{
|
||||
this.distance = distance;
|
||||
this.position = position;
|
||||
this.normal = normal;
|
||||
this.triangle = triangle;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user