Assignment for RMIT Mixed Reality in 2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

24 lines
487 B

using Oculus.Avatar;
public class OvrAvatarBase : OvrAvatarComponent
{
ovrAvatarBaseComponent component = new ovrAvatarBaseComponent();
void Update()
{
if (owner == null)
{
return;
}
if (CAPI.ovrAvatarPose_GetBaseComponent(owner.sdkAvatar, ref component))
{
UpdateAvatar(component.renderComponent);
}
else
{
owner.Base = null;
Destroy(this);
}
}
}