Battle Talent  V11
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Static Protected Attributes | Properties | List of all members
CrossLink.AttachObj Class Reference

Inherits MonoBehaviour.

Inherited by CrossLink.AttachLine, and CrossLink.AttachPoint.

Public Member Functions

void SetHandSide (HandSide hs)
 
void SetFlyControlEnabled (bool f)
 
float GetCallbackSpeedMlp ()
 
void SetCallbackSpeedMlp (float sm)
 
void Reset ()
 
virtual void ShowGrabaleHint (InteractHand hand)
 
virtual void ShowNearHand (InteractHand hand)
 
virtual Vector3 GetHandPos (InteractHand hand)
 
virtual Vector3 GetHandDir (InteractHand hand)
 
virtual HandPoseSetup GetOrCreateHandPose (InteractHand hand)
 
virtual HandPoseSetup GetHandPoseRef (InteractHand hand)
 
virtual void UpdateHandPosition (InteractHand hand)
 
void SetupHandPose (InteractHand hand)
 
void ClearHandPose (InteractHand hand)
 
bool IsLegalHandIndex (int index)
 
bool IsBeingHeld ()
 
virtual bool CanGrab (int handIndex)
 
bool IsJustGrab (float grabInterval=0.2f)
 
void Grab (InteractHand hand)
 
void UnGrab (InteractHand hand)
 
Vector3 CalcGrabPosOffset ()
 
void BeginFlyTo (InteractHand hand)
 
void CloseFlyTo ()
 
void FlyTo (InteractHand hand, float percent, float sec)
 
virtual void Mount (ConfigurableJoint mountJoint, bool enableLock=false)
 
virtual void UpdateMountJointDrive (ConfigurableJoint mountJoint, bool singleHand=true, bool ignoreRot=false)
 
virtual void UnMount (ConfigurableJoint mountJoint)
 
void ClimbMount (InteractHand hand, bool enableLock=false)
 
void UnClimbMount (InteractHand hand)
 
virtual void UpdateClimbJoint ()
 

Static Public Member Functions

static void ResetAllFixers ()
 

Public Attributes

InteractBase interact
 
Rigidbody selfRB
 
InteractHand attachedHand
 
InteractHand lastAttachedHand
 
AttachObj dependAttachObj
 
Transform trans
 
string handPose = HandPoseLibrary.HoldPose
 
bool autoUpdateHandPose = false
 
bool allowTrigger = true
 
AttachPointQuad[] panels = new AttachPointQuad[RagdollBoneInfo.HAND_NUM]
 
float grabTime
 
bool isClimbAttach = false
 

Protected Member Functions

void Awake ()
 
void Start ()
 
virtual void Init ()
 
void OnDestroy ()
 
AttachPointQuad GetOrCreatePanel (int index)
 
void SetPanelScale (int index, bool s)
 
void HidePanel (int index)
 
void HideAllPanel ()
 
void RemoveAllPanel ()
 
virtual void GiveBackHandPose (HandPoseSetup hps)
 
virtual bool CanGrab ()
 
void LinkJoint (ConfigurableJoint mountJoint, bool enableLock=false)
 
void UnLinkJoint (ConfigurableJoint mountJoint)
 

Protected Attributes

bool flyControlEnabled = true
 
float callbackSpeedMlp = 1
 
bool isInit = false
 
Transform[] panelPoints = new Transform[RagdollBoneInfo.HAND_NUM]
 
ConfigurableJoint reactJoint
 

Static Protected Attributes

static Quaternion rightFixer = Quaternion.identity
 
static Quaternion leftFixer = Quaternion.identity
 
static Vector3 rightOffset = Vector3.zero
 
static Vector3 leftOffset = Vector3.zero
 

Properties

bool IsBeingCalled [get]