Class MeshRaycast
Inheritance
System.Object
MeshRaycast
Assembly: Sylves.dll
Syntax
public static class MeshRaycast : Object
Methods
RaycastAabb(Vector3, Vector3, Vector3, Vector3, out Single)
Declaration
public static bool RaycastAabb(Vector3 rayOrigin, Vector3 direction, Vector3 min, Vector3 max, out float distance)
Parameters
Returns
Type |
Description |
System.Boolean |
|
RaycastAabbPlanar(Vector3, Vector3, Vector3, Vector3, out Single)
Declaration
public static bool RaycastAabbPlanar(Vector3 rayOrigin, Vector3 direction, Vector3 min, Vector3 max, out float distance)
Parameters
Returns
Type |
Description |
System.Boolean |
|
RaycastCube(Vector3, Vector3, Vector3, Vector3, Vector3, Vector3, Vector3, Vector3, Vector3, Vector3)
Declaration
public static Nullable<RaycastInfo> RaycastCube(Vector3 rayOrigin, Vector3 direction, Vector3 v1, Vector3 v2, Vector3 v3, Vector3 v4, Vector3 v5, Vector3 v6, Vector3 v7, Vector3 v8)
Parameters
Returns
RaycastPolygonPlanar(Vector3, Vector3, Vector3[], Matrix4x4, out Vector3, out Single, out Nullable<Int32>)
Declaration
public static bool RaycastPolygonPlanar(Vector3 rayOrigin, Vector3 direction, Vector3[] v, Matrix4x4 transform, out Vector3 point, out float distance, out Nullable<int> side)
Parameters
Returns
Type |
Description |
System.Boolean |
|
RaycastPolygonPlanar(Vector3, Vector3, Vector3[], out Vector3, out Single, out Nullable<Int32>)
Declaration
public static bool RaycastPolygonPlanar(Vector3 rayOrigin, Vector3 direction, Vector3[] vs, out Vector3 point, out float distance, out Nullable<int> side)
Parameters
Type |
Name |
Description |
Vector3 |
rayOrigin |
|
Vector3 |
direction |
|
Vector3[] |
vs |
|
Vector3 |
point |
|
System.Single |
distance |
|
System.Nullable<System.Int32> |
side |
|
Returns
Type |
Description |
System.Boolean |
|
RaycastSegmentPlanar(Vector3, Vector3, Vector3, Vector3, out Vector3, out Single, out Boolean)
Performs a raycast in the XY plane of a ray vs a finite segment of a line.
z-coordinates are completely ignored.
Declaration
public static bool RaycastSegmentPlanar(Vector3 rayOrigin, Vector3 direction, Vector3 v0, Vector3 v1, out Vector3 point, out float distance, out bool side)
Parameters
Returns
Type |
Description |
System.Boolean |
|
RaycastTri(Vector3, Vector3, Vector3, Vector3, Vector3, out Vector3, out Single)
Raycasts a ray vs a single triagnle.
Declaration
public static bool RaycastTri(Vector3 rayOrigin, Vector3 direction, Vector3 v0, Vector3 v1, Vector3 v2, out Vector3 point, out float distance)
Parameters
Returns
Type |
Description |
System.Boolean |
|
RaycastTri(Vector3, Vector3, Vector3, Vector3, Vector3, out Vector3, out Single, out Boolean)
Raycasts a ray vs a single triagnle.
Declaration
public static bool RaycastTri(Vector3 rayOrigin, Vector3 direction, Vector3 v0, Vector3 v1, Vector3 v2, out Vector3 point, out float distance, out bool side)
Parameters
Returns
Type |
Description |
System.Boolean |
|