public static float GetFloat(FLOAT_DATA_TYPE type, int userIndex = 0) { switch (type) { case FLOAT_DATA_TYPE.AudioBeat: return(AudioProcessor.GetBeat()); case FLOAT_DATA_TYPE.AudioLevel: return(AudioProcessor.GetLevel()); case FLOAT_DATA_TYPE.HandsHorizontalSeparation: return(CVInterface.GetFloat(FLOAT_DATA_TYPE.HandsHorizontalSeparation, userIndex)); case FLOAT_DATA_TYPE.HandsVerticalSeparation: return(CVInterface.GetFloat(FLOAT_DATA_TYPE.HandsVerticalSeparation)); case FLOAT_DATA_TYPE.HandsToPelvisFactor: return(CVInterface.GetFloat(FLOAT_DATA_TYPE.HandsToPelvisFactor)); case FLOAT_DATA_TYPE.UserHorizontalPosition: return(CVInterface.GetFloat(FLOAT_DATA_TYPE.UserHorizontalPosition)); case FLOAT_DATA_TYPE.PelvisToLeftHand: return(CVInterface.GetFloat(FLOAT_DATA_TYPE.PelvisToLeftHand, userIndex)); case FLOAT_DATA_TYPE.PelvisToRightHand: return(CVInterface.GetFloat(FLOAT_DATA_TYPE.PelvisToRightHand, userIndex)); case FLOAT_DATA_TYPE.AmplitudeSetting: return(CVInterface.GetFloat(FLOAT_DATA_TYPE.AmplitudeSetting)); default: return(0.0f); } }
// Update is called once per frame void Update() { if (CVInterface._Instance && refTransform != null) { float sep = CVInterface.GetFloat(FXDataProvider.FLOAT_DATA_TYPE.HandsVerticalSeparation); refTransform.Rotate(0.0f, sep * multiplier, 0.0f); } }