Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
embodiment-learning
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SoftwareProjectVR17
embodiment-learning
Commits
e494091b
Commit
e494091b
authored
7 years ago
by
Alexis Iakovenko
Browse files
Options
Downloads
Patches
Plain Diff
Fix total score computing
parent
b1ff966e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Assets/Compare/LiveComparer.cs
+7
-7
7 additions, 7 deletions
Assets/Compare/LiveComparer.cs
Assets/Scenes/Replay.unity
+11
-0
11 additions, 0 deletions
Assets/Scenes/Replay.unity
with
18 additions
and
7 deletions
Assets/Compare/LiveComparer.cs
+
7
−
7
View file @
e494091b
...
...
@@ -22,6 +22,12 @@ public class LiveComparer : MonoBehaviour
Vector3
rightPalmPosition
=
Vector3
.
zero
;
Vector3
rightPalmRotation
=
Vector3
.
zero
;
public
void
ResetScore
()
{
totalScore
=
0.0f
;
frameScore
=
0.0f
;
sumScore
=
0.0f
;
}
void
Update
()
{
...
...
@@ -33,12 +39,6 @@ public class LiveComparer : MonoBehaviour
ComputeScore
();
UpdateScoreLabels
();
}
else
{
totalScore
=
0.0f
;
frameScore
=
0.0f
;
sumScore
=
0.0f
;
}
}
void
ComputeScore
()
...
...
@@ -61,7 +61,7 @@ public class LiveComparer : MonoBehaviour
frameScore
-=
absoluteDifferencePosition
+
absoluteDifferenceRotation
;
sumScore
+=
frameScore
;
totalScore
=
sumScore
/
(
replay
.
currentFrame
+
1
);
totalScore
=
sumScore
/
(
replay
.
currentFrame
);
}
void
FetchPalmsCoordinates
()
...
...
This diff is collapsed.
Click to expand it.
Assets/Scenes/Replay.unity
+
11
−
0
View file @
e494091b
...
...
@@ -445,6 +445,17 @@ MonoBehaviour:
m_StringArgument
:
m_BoolArgument
:
0
m_CallState
:
2
-
m_Target
:
{
fileID
:
1896376827
}
m_MethodName
:
ResetScore
m_Mode
:
1
m_Arguments
:
m_ObjectArgument
:
{
fileID
:
0
}
m_ObjectArgumentAssemblyTypeName
:
UnityEngine.Object, UnityEngine
m_IntArgument
:
0
m_FloatArgument
:
0
m_StringArgument
:
m_BoolArgument
:
0
m_CallState
:
2
m_TypeName
:
UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null
---
!u!114
&512389763
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment