• Manual
  • API Summary
  • About
Show / Hide Table of Contents
  • DOTS_TPC
    • DotsHelper
    • FollowMode
    • FreeLookMode
    • FreeLookMouseHideMode
    • MouseCursorHelper
    • StationaryModeType
    • TargetablesComparer
    • TargetableWithDistance
    • TPC_AllHitsCollector
    • TPC_CameraControllerJob
    • TPC_CameraControllerJob.DistanceComparer
    • TPC_CameraTarget
    • TPC_ControllerOptions
    • TPC_ControllerState
    • TPC_DebugOptions
    • TPC_FadeMaterial
    • TPC_FadeSystem
    • TPC_FadeSystem.FadeJob
    • TPC_FadeSystem.FadeJob.InternalCompiler
    • TPC_FadeSystem.FadeJob.InternalCompilerQueryAndHandleData
    • TPC_FadeSystem.FadeJob.InternalCompilerQueryAndHandleData.TypeHandle
    • TPC_FollowJob
    • TPC_FollowOptions
    • TPC_FollowState
    • TPC_FreeLookJob
    • TPC_FreeLookOptions
    • TPC_GatherInputsSystem
    • TPC_HitsCollector
    • TPC_IgnoreTag
    • TPC_Input
    • TPC_Input_FreeLook
    • TPC_Input_LockOn
    • TPC_Input_Shoulder
    • TPC_Input.CameraMovementActions
    • TPC_Input.ICameraMovementActions
    • TPC_LockOnCollector
    • TPC_LockOnJob
    • TPC_LockOnOptions
    • TPC_LockOnState
    • TPC_MainCamera
    • TPC_MainSystem
    • TPC_RaycasHitsCollector
    • TPC_ShoulderJob
    • TPC_ShoulderOptions
    • TPC_SmoothedTargetPosition
    • TPC_SyncMainCameraSystem
    • TPC_TargetableOffset
    • TPC_TargetableTag

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()
Namespace: DOTS_TPC
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
Type Description
Single

CanCollide(Material)

Declaration
public static bool CanCollide(this Material material)
Parameters
Type Name Description
Material material
Returns
Type Description
Boolean

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 Description
T
Type Parameters
Name Description
T

IsValidHitNormal(float3, float3)

Declaration
public static bool IsValidHitNormal(float3 normal, float3 targetDir)
Parameters
Type Name Description
float3 normal
float3 targetDir
Returns
Type Description
Boolean

IsValidRayCastHit(ColliderCastHit, float3)

Declaration
public static bool IsValidRayCastHit(this ColliderCastHit hit, float3 targetDir)
Parameters
Type Name Description
ColliderCastHit hit
float3 targetDir
Returns
Type Description
Boolean

IsValidRayCastHit(RaycastHit, float3)

Declaration
public static bool IsValidRayCastHit(this RaycastHit hit, float3 targetDir)
Parameters
Type Name Description
RaycastHit hit
float3 targetDir
Returns
Type Description
Boolean

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

RotateAroundPoint(ref LocalTransform, float3, float3, Single)

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

RotateAroundPoint(ref LocalTransform, float3, quaternion)

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
Type Description
float3

toEuler(quaternion)

Declaration
public static float3 toEuler(this quaternion q)
Parameters
Type Name Description
quaternion q
Returns
Type Description
float3
In This Article
Back to top Generated by DocFX