12-22-2016 12:33 PM
12-25-2016 10:52 AM
12-26-2016 12:55 PM
12-26-2016 04:31 PM
12-26-2016 06:15 PM
12-26-2016 08:40 PM
12-29-2016 09:38 AM
12-30-2016 07:32 PM
Rave185 said:
Still having trouble getting custom player avatars working though. The generic fallback avatar works, but no custom ones.
public string m_OVRappID = "";
public User m_OVRuser = null;
public ulong m_OVRuserID = 0;
void Awake ()
{
Core.Initialize (m_OVRappID);
doEntitlementCheck ();
Users.GetLoggedInUser ().OnComplete (GetLoggedInUserCallback);
}
private void GetLoggedInUserCallback (Message msg)
{
if (!msg.IsError) {
m_OVRuser = msg.GetUser ();
m_OVRuserID = m_OVRuser.OculusID;
}
}
public OvrAvatar m_OVRavatar = null;
void Awake ()
{
OvrAvatar ovrAvtr = this.GetComponent<OvrAvatar> ();
if (ovrAvtr) {
m_OVRavatar = ovrAvtr;
}
}
m_OVRavatar.oculusUserID = m_myGameManager.m_myAppManager.m_OVRuserID;
m_OVRavatar.enabled = true;
12-30-2016 07:39 PM
12-31-2016 04:55 PM
GetComponent<Rigidbody> ().MovePosition (m_parentTransform.rotation * ((handPos + m_anchorOffsetPosition)) + m_parentTransform.position);
GetComponent<Rigidbody> ().MoveRotation (m_parentTransform.rotation * (handRot * m_anchorOffsetRotation));
12-31-2016 07:12 PM