VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
AVR.Avatar.AVR_PoseAssumer Class Reference

Applies a pose provided by an AVR_PosePorvider to a rigged 3d model with an avatar. More...

Inheritance diagram for AVR.Avatar.AVR_PoseAssumer:
AVR.Core.AVR_Component AVR.Core.AVR_Behaviour

Public Attributes

AVR_PoseProvider provider
 PoseProvider to get pose information from More...
 
Transform headTransform
 3d models' transform of the head More...
 
Transform neckTransform
 3d models' transform of the neck More...
 
bool switchAxisXZ = true
 Swap the X and Y axes of the head and neck. (If the head is inverted on your avatar, toggle this) More...
 
bool swap_feet = false
 Swap left and right feet targets. (If the avatar consistently has crossed legs, toggle this) More...
 
bool autoLayerBlend = false
 If true, we automatically blend the weight of the IK layer to inverse proportion of the playerRigs' speed More...
 
string speedAnimationParameter = "Speed"
 The animation parameter in the animation controller we set to the playerrigs speed when the rig is teleporting More...
 
float layerBlend_speed = 5.0f
 Speed of how quickly we blend in and out of the IK layer (if autoLayerBlend is true) More...
 
float lookAtWeight_body = 0.0f
 
float lookAtWeight_head = 1.0f
 
float lookAtWeight_eyes = 1.0f
 
float lookAtWeight_clamp = 0.0f
 
float lookAtWeight = 1.0f
 
float HandPosWeight = 1.0f
 
float HandRotWeight = 0.5f
 
float FootPosWeight = 1.0f
 
float FootRotWeight = 1.0f
 
- Public Attributes inherited from AVR.Core.AVR_Component
UnityEngine.Events.UnityEvent onAwake
 Events called when this component awakes. More...
 
UnityEngine.Events.UnityEvent onStart
 Events called when this component starts. More...
 
UnityEngine.Events.UnityEvent onEnable
 Events called when this component is enabled. More...
 
UnityEngine.Events.UnityEvent onDisable
 Events called when this component is disabled. More...
 

Protected Member Functions

override void Start ()
 
void setWeights (int layerIndex)
 
void setPosRot (int layerIndex)
 
- Protected Member Functions inherited from AVR.Core.AVR_Component
virtual void Awake ()
 
virtual void OnEnable ()
 
virtual void OnDisable ()
 

Private Member Functions

void CheckIKPass ()
 
void LateUpdate ()
 
void Update ()
 
void OnAnimatorIK (int layerIndex)
 

Private Attributes

Animator animator
 
bool IKPass_is_enabled = false
 
float layerBlend = 1.0f
 

Additional Inherited Members

- Public Member Functions inherited from AVR.Core.AVR_Behaviour
virtual void OnDestroy ()
 
- Protected Attributes inherited from AVR.Core.AVR_Behaviour
AVR_PlayerRig playerRig => AVR_PlayerRig.Instance
 The current AVR_PlayerRig instance in the scene More...
 
AVR_Root root => AVR_Root.Instance
 The current AVR_Root instance in the scene More...
 
bool vrEnabled => UnityEngine.XR.XRSettings.enabled
 True if the application is running as a VR/XR application More...
 

Detailed Description

Applies a pose provided by an AVR_PosePorvider to a rigged 3d model with an avatar.

Definition at line 14 of file AVR_PoseAssumer.cs.