1
0
forked from cgvr/DeltaVR

change shape checker configurations + fix bug with rounding

This commit is contained in:
2026-03-07 16:05:37 +02:00
parent 944b4f0827
commit 7a37566296
4 changed files with 8 additions and 8 deletions

View File

@@ -24,7 +24,7 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2354450984668654816}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0.36, y: 0, z: 0.36}
m_LocalPosition: {x: -0.36, y: 0, z: 0.36}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
@@ -5363,7 +5363,7 @@ Transform:
- {fileID: 9144315919467176582}
- {fileID: 838688587096854655}
m_Father: {fileID: 0}
m_RootOrder: 0
m_RootOrder: -1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!33 &7357316722049006805
MeshFilter:
@@ -5880,7 +5880,7 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8166908684741444074}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -0.36, y: 0, z: -0.36}
m_LocalPosition: {x: 0.36, y: 0, z: -0.36}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []

View File

@@ -166,7 +166,7 @@ public class ShapeScanner : MonoBehaviour
private float calculateCorrectPercentage()
{
return Mathf.RoundToInt((float)correctRayStates / rayCount * 100);
return (float) correctRayStates / rayCount * 100;
}
public void IncrementCorrectRayCount()