Battle Talent  V11
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Events | List of all members
CrossLink.InteractHand Class Reference

Inherits MonoBehaviour.

Public Member Functions

void CheckHandConnection ()
 
Vector3 GetLocalHandOffset ()
 
Vector3 GetTrackerLocalPos ()
 
void HandImpact (float sec=0.4f)
 
int GetHandIndex ()
 
bool IsRightHand ()
 
InteractHand GetAnotherHand ()
 
Vector3 GetHandHeadOffset ()
 
Vector3 GetTearVec ()
 
Vector3 GetArmTargetOffset ()
 
bool IsSketchAway ()
 
Vector3 GetHandHoldOffset ()
 
void SetHandOffsetOnPlatform (Vector3 offset, Vector3 rotateDir, float rotateAngle)
 
bool IsTriggering ()
 
bool IsBan ()
 
void Ban (bool b)
 
AttachObj GetLatestLegalAttachObj (InteractHand hand)
 
bool CheckAttachLegal (InteractHand hand, AttachObj att)
 
bool CheckAttachLegalToCallback (AttachObj att)
 
void SetAttachHint (AttachObj att)
 
void Grab (AttachObj attach)
 
void EnableArm (bool en)
 
bool IsReadyForGrab ()
 
bool IsCalling ()
 
void CallAndGrab (AttachObj attach, float sec)
 
Rigidbody GetFingerGrabObj ()
 
void SetFingerGrabObj (Rigidbody fb)
 
void SetFingerGrabRBJoint (ConfigurableJoint j)
 
bool IsGrabbing ()
 
bool FreeGrab ()
 
bool IsUpdatingFingerPose ()
 
void UpdateFingerPoseForAWhile (float sec=0.3f, float interval=0.1f)
 
void StopUpdateFingerPose ()
 
void ReleaseFingerGrab ()
 
Vector3 GetThumbDir ()
 
Vector3 GetIndexDir ()
 
Vector3 GetHandDirection ()
 
Vector3 GetPalmDir ()
 
Vector3 GetGrabDir ()
 
bool CheckPopOut (InteractBase grabItem)
 
void CheckOverlapOnGrabChanged (InteractBase grabItem, bool grabbed)
 
void CheckOverlapOnSlotChanged (SlotTrigger slot, bool install)
 
bool IsTriggerSlotEquiped ()
 
bool IsTriggerSlotTriggering ()
 
bool CanSlotTrigger ()
 
void DoSlotTrigger (bool t)
 
void Init ()
 
void InitJointFollow ()
 
void SetControlType (VRTKInputDevice.ControllerType type)
 
VRTKInputDevice.ControllerType GetControlType ()
 
bool IsUndefineController ()
 
string GetControlDeviceType ()
 
string GetControlDeviceTypePostfix ()
 
bool IsTouchGripBase ()
 
bool IsSimuatingTouchPad ()
 
bool IsTouchPadBase ()
 
bool IsHoldToGrab ()
 
bool CheckGrab ()
 
void CheckDevice (bool forceUpdate=false)
 
void ResetInputs ()
 
void HapticPulse (float strength=0.5f)
 
void HapticPulse (AnimationCurve curve, float sec, float strengthLv=1)
 
Renderer[] GetGloveRenderers ()
 
void LerpGloveColor (Color c, float lerpTime)
 
void SetGloveColor (Color color)
 
void ToggleGloveColor ()
 
void ShakeGlove (float len)
 
void StopGloveShake ()
 
bool IsChargedAttack ()
 

Static Public Member Functions

static InteractHand GetHandByCollider (Collider c)
 
static void ClearSlot (SlotTrigger slot)
 
static void EnableCheckUI (bool e)
 

Public Attributes

InteractCharacter character
 
Transform snapObj
 
bool linkToDevice = false
 
RootMotion.FinalIK.IKSolverVR.Arm armIK
 
List< InteractBaserecentlyThrowList = new List<InteractBase>()
 
VelocityCalculator velocityEstimator = new VelocityCalculator()
 
VRTKHandTracker handTracker
 
GameObject uiAimer
 
AimWidget aimWidget
 
WhooshSoundController soundController
 
SlotTrigger mountHint
 
Transform trans
 
Transform selfTrans
 
ConfigurableJoint grabJoint
 
AttachObj attachTo
 
AttachObj attachHint
 
bool needCheckStretch = false
 
System.Action< Rigidbody, bool > FingerGrabEvent
 
Vector3 fingerGrabEul
 
PhysicsHand physicsHand
 
Transform followTarget
 
HandPoseControl handPoseControl
 
Transform handDir
 
SlotTrigger[] triggerSlots
 
VRTKInputDevice inputDevice
 
Dictionary< VRTKInputButton.ButtonType, VRTKInputButtoninputs = new Dictionary<VRTKInputButton.ButtonType, VRTKInputButton>()
 
Color gloveLightColor = new Color(0.943f, 0.952f, 0.588f)
 
Color gloveDefaultColor = Color.black
 

Static Public Attributes

const float HAND_SPEED_FAST = 2.6f
 
const float HAND_SPEED_HIGHEST = 6
 
const float HAND_CALL_CLOSE_DIS = 0.15f
 
const float HAND_CALL_CLOSE_DIS_SQRT = HAND_CALL_CLOSE_DIS* HAND_CALL_CLOSE_DIS
 
const float HAND_CALL_AWAY_DIS = 0.5f
 
const float HAND_CALL_AWAY_DIS_SQRT = HAND_CALL_AWAY_DIS * HAND_CALL_AWAY_DIS
 
const float GRAB_DIS = 0.2f
 
const float GRAB_DIS_SQRT = GRAB_DIS * GRAB_DIS
 
const float FREE_GRAB_DIS = 0.05f
 
const float FREE_GRAB_DIS_SQRT = FREE_GRAB_DIS * FREE_GRAB_DIS
 
static int IsCheckUI = 0
 
const float CallbackTime = 0.3f
 
const string ControlDevice_Knuckle = "Knuckle"
 
const string ControlDevice_Oculus = "Oculus"
 
const string ControlDevice_WMR = "WMR"
 
const string ControlDevice_Vive = "Vive"
 
const string ControlDevice_Pico = "Pico"
 
const string ControlDevice_PSVR2 = "PSVR2"
 
const string ControlDevice_Default = ControlDevice_Vive
 
const string ControlDevice_Postfix_Knuckle = "_Knuckle"
 
const string ControlDevice_Postfix_Oculus = "_Oculus"
 
const string ControlDevice_Postfix_WMR = "_WMR"
 
const string ControlDevice_Postfix_Vive = "_Vive"
 
const string ControlDevice_Postfix_Pico = "_Pico"
 
const string ControlDevice_Postfix_PSVR2 = "_PSVR2"
 
const string ControlDevice_Postfix_Default = ControlDevice_Vive
 

Events

System.Action< AttachObjGrabEvent