Example #1
0
    public void BuffTelemetrySampleNow()
    {
        float   t           = Time.time - trialStartTime;
        Vector3 cameraAngle = Camera.main.gameObject.transform.rotation.eulerAngles;
        float   x           = cameraAngle.x;
        float   y           = cameraAngle.y;
        float   z           = cameraAngle.z;

        gameController.TrajectoryPoint point = new gameController.TrajectoryPoint(x, y, z, t); // Adjust coordinate system to unity -> flipped Y and Z
        teleL.Add(point);
    }
Example #2
0
    void LogTele()
    // Log head trajectory
    {
        Vector3 cameraAngle = Camera.main.gameObject.transform.rotation.eulerAngles;
        float   x           = cameraAngle.x;
        float   y           = cameraAngle.y - 90;

        if (y > 180)
        {
            y = -180f + (y - 180f);
        }
        float z = cameraAngle.z;

        gameController.TrajectoryPoint telePoint = new gameController.TrajectoryPoint(x, y, z, timeInTrial); // Adjust coordinate system to unity -> flipped Y and Z
        teleL.Add(telePoint);
    }
Example #3
0
 void LogSoundPos()
 {
     gameController.TrajectoryPoint soundPoint = new gameController.TrajectoryPoint(soundSourceContainer.transform.position.x, soundSourceContainer.transform.position.y, soundSourceContainer.transform.position.z, timeInTrial); // Adjust coordinate system to unity -> flipped Y and Z
     actualSoundPosL.Add(soundPoint);
 }