< Summary

Class:MoveCamCollider
Assembly:Test
File(s):D:/--UnityProject/VR/VRExplorer_subjects/VR-Adventure/Assets/Scripts/MoveCamCollider.cs
Covered lines:8
Uncovered lines:0
Coverable lines:8
Total lines:24
Line coverage:100% (8 of 8)
Covered branches:0
Total branches:0
Covered methods:2
Total methods:2
Method coverage:100% (2 of 2)

Coverage History

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Start()0%000100%
FixedUpdate()0%000100%

File(s)

D:/--UnityProject/VR/VRExplorer_subjects/VR-Adventure/Assets/Scripts/MoveCamCollider.cs

#LineLine coverage
 1using System.Collections;
 2using System.Collections.Generic;
 3using Unity.XR.CoreUtils;
 4using UnityEngine;
 5
 6public class MoveCamCollider : MonoBehaviour
 7{
 8    CapsuleCollider _collider;
 9    XROrigin _xrOrigin;
 10    void Start()
 411    {
 412        _collider = GetComponent<CapsuleCollider>();
 413        _xrOrigin = GetComponent<XROrigin>();
 414    }
 15
 16    void FixedUpdate()
 538417    {
 538418        _collider.height = _xrOrigin.CameraInOriginSpaceHeight;
 538419        _collider.center = new Vector3(
 20            _xrOrigin.CameraInOriginSpacePos.x,
 21            _collider.height / 2,
 22            _xrOrigin.CameraInOriginSpacePos.z);
 538423    }
 24}

Methods/Properties

Start()
FixedUpdate()