Class DotsHelper
Inheritance
Object
DotsHelper
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Assembly: DOTS-TPC.dll
Syntax
public static class DotsHelper
Methods
Angle(float3, float3)
returns the angle in degrees
Declaration
public static float Angle(float3 from, float3 to)
Parameters
Type |
Name |
Description |
float3 |
from |
|
float3 |
to |
|
Returns
CanCollide(Material)
Declaration
public static bool CanCollide(this Material material)
Parameters
Type |
Name |
Description |
Material |
material |
|
Returns
ElementAt<T>(NativeArray<T>, Int32)
Declaration
public static ref T ElementAt<T>(this NativeArray<T> array, int index)
where T : struct
Parameters
Type |
Name |
Description |
NativeArray<T> |
array |
|
Int32 |
index |
|
Returns
Type Parameters
IsValidHitNormal(float3, float3)
Declaration
public static bool IsValidHitNormal(float3 normal, float3 targetDir)
Parameters
Type |
Name |
Description |
float3 |
normal |
|
float3 |
targetDir |
|
Returns
IsValidRayCastHit(ColliderCastHit, float3)
Declaration
public static bool IsValidRayCastHit(this ColliderCastHit hit, float3 targetDir)
Parameters
Type |
Name |
Description |
ColliderCastHit |
hit |
|
float3 |
targetDir |
|
Returns
IsValidRayCastHit(RaycastHit, float3)
Declaration
public static bool IsValidRayCastHit(this RaycastHit hit, float3 targetDir)
Parameters
Type |
Name |
Description |
RaycastHit |
hit |
|
float3 |
targetDir |
|
Returns
RotateAroundPoint(ref float3, ref quaternion, float3, float3, Single)
Declaration
public static void RotateAroundPoint(ref float3 position, ref quaternion rotation, float3 point, float3 axis, float angle)
Parameters
Type |
Name |
Description |
float3 |
position |
|
quaternion |
rotation |
|
float3 |
point |
|
float3 |
axis |
|
Single |
angle |
|
RotateAroundPoint(ref float3, ref quaternion, float3, quaternion)
Declaration
public static void RotateAroundPoint(ref float3 position, ref quaternion rotation, float3 aroundPoint, quaternion addedRotation)
Parameters
Type |
Name |
Description |
float3 |
position |
|
quaternion |
rotation |
|
float3 |
aroundPoint |
|
quaternion |
addedRotation |
|
Declaration
public static void RotateAroundPoint(ref LocalTransform transform, float3 point, float3 axis, float angle)
Parameters
Type |
Name |
Description |
LocalTransform |
transform |
|
float3 |
point |
|
float3 |
axis |
|
Single |
angle |
|
Declaration
public static void RotateAroundPoint(ref LocalTransform transform, float3 aroundPoint, quaternion addedRotation)
Parameters
Type |
Name |
Description |
LocalTransform |
transform |
|
float3 |
aroundPoint |
|
quaternion |
addedRotation |
|
slerp(float3, float3, Single, float3)
Declaration
public static float3 slerp(float3 a, float3 b, float t, float3 up)
Parameters
Type |
Name |
Description |
float3 |
a |
|
float3 |
b |
|
Single |
t |
|
float3 |
up |
|
Returns
toEuler(quaternion)
Declaration
public static float3 toEuler(this quaternion q)
Parameters
Type |
Name |
Description |
quaternion |
q |
|
Returns