Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
RhythmKata
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
13정준영
RhythmKata
Commits
48cee20a
Commit
48cee20a
authored
Nov 17, 2019
by
15박보승
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EdgeNote 움직임 수정
parent
6199b686
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
34 additions
and
25 deletions
+34
-25
EdgeNote_Down.prefab
RhythmKata/Assets/Prefabs/EdgeNote_Down.prefab
+5
-5
EdgeNote_Left.prefab
RhythmKata/Assets/Prefabs/EdgeNote_Left.prefab
+3
-3
EdgeNote_Right.prefab
RhythmKata/Assets/Prefabs/EdgeNote_Right.prefab
+3
-3
EdgeNote_Up.prefab
RhythmKata/Assets/Prefabs/EdgeNote_Up.prefab
+5
-5
Recorded.meta
...sources/SFX/SFX Project/sfx Project/Samples/Recorded.meta
+0
-8
EdgeNoteObject.cs
RhythmKata/Assets/Scripts/EdgeNoteObject.cs
+18
-1
No files found.
RhythmKata/Assets/Prefabs/EdgeNote_Down.prefab
View file @
48cee20a
...
...
@@ -27,13 +27,13 @@ Transform:
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
4640709078173886784
}
m_LocalRotation
:
{
x
:
0
,
y
:
0
,
z
:
0
.7071068
,
w
:
0.7071068
}
m_LocalPosition
:
{
x
:
0
,
y
:
-3
,
z
:
5
0
}
m_LocalScale
:
{
x
:
1
,
y
:
10
,
z
:
1
}
m_LocalRotation
:
{
x
:
0
,
y
:
0
,
z
:
0
,
w
:
1
}
m_LocalPosition
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_LocalScale
:
{
x
:
1
0
,
y
:
10
,
z
:
1
}
m_Children
:
[]
m_Father
:
{
fileID
:
0
}
m_RootOrder
:
0
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
9
0
}
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
---
!u!33
&4640709078173886787
MeshFilter
:
m_ObjectHideFlags
:
0
...
...
@@ -111,4 +111,4 @@ MonoBehaviour:
hitSfx
:
-
{
fileID
:
8300000
,
guid
:
e60d0bfc8448c5040af14e9faeaecae5
,
type
:
3
}
-
{
fileID
:
8300000
,
guid
:
b90743fe091960d4f837d44bbd2ad318
,
type
:
3
}
direction
:
{
x
:
0
,
y
:
0
,
z
:
0
}
direction
:
{
x
:
0
,
y
:
-1
,
z
:
0
}
RhythmKata/Assets/Prefabs/EdgeNote_Left.prefab
View file @
48cee20a
...
...
@@ -28,8 +28,8 @@ Transform:
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
4734231541000158423
}
m_LocalRotation
:
{
x
:
0
,
y
:
0
,
z
:
0
,
w
:
1
}
m_LocalPosition
:
{
x
:
-5
,
y
:
0
,
z
:
5
0
}
m_LocalScale
:
{
x
:
1
,
y
:
7
,
z
:
1
}
m_LocalPosition
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_LocalScale
:
{
x
:
1
0
,
y
:
10
,
z
:
1
}
m_Children
:
[]
m_Father
:
{
fileID
:
0
}
m_RootOrder
:
0
...
...
@@ -111,4 +111,4 @@ MonoBehaviour:
hitSfx
:
-
{
fileID
:
8300000
,
guid
:
e60d0bfc8448c5040af14e9faeaecae5
,
type
:
3
}
-
{
fileID
:
8300000
,
guid
:
b90743fe091960d4f837d44bbd2ad318
,
type
:
3
}
direction
:
{
x
:
0
,
y
:
0
,
z
:
0
}
direction
:
{
x
:
-1
,
y
:
0
,
z
:
0
}
RhythmKata/Assets/Prefabs/EdgeNote_Right.prefab
View file @
48cee20a
...
...
@@ -28,8 +28,8 @@ Transform:
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
1476454008853626150
}
m_LocalRotation
:
{
x
:
0
,
y
:
0
,
z
:
0
,
w
:
1
}
m_LocalPosition
:
{
x
:
5
,
y
:
0
,
z
:
5
0
}
m_LocalScale
:
{
x
:
1
,
y
:
7
,
z
:
1
}
m_LocalPosition
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_LocalScale
:
{
x
:
1
0
,
y
:
10
,
z
:
1
}
m_Children
:
[]
m_Father
:
{
fileID
:
0
}
m_RootOrder
:
0
...
...
@@ -111,4 +111,4 @@ MonoBehaviour:
hitSfx
:
-
{
fileID
:
8300000
,
guid
:
e60d0bfc8448c5040af14e9faeaecae5
,
type
:
3
}
-
{
fileID
:
8300000
,
guid
:
b90743fe091960d4f837d44bbd2ad318
,
type
:
3
}
direction
:
{
x
:
0
,
y
:
0
,
z
:
0
}
direction
:
{
x
:
1
,
y
:
0
,
z
:
0
}
RhythmKata/Assets/Prefabs/EdgeNote_Up.prefab
View file @
48cee20a
...
...
@@ -27,13 +27,13 @@ Transform:
m_PrefabInstance
:
{
fileID
:
0
}
m_PrefabAsset
:
{
fileID
:
0
}
m_GameObject
:
{
fileID
:
4081910931583206819
}
m_LocalRotation
:
{
x
:
0
,
y
:
0
,
z
:
0
.7071068
,
w
:
0.7071068
}
m_LocalPosition
:
{
x
:
0
,
y
:
3
,
z
:
5
0
}
m_LocalScale
:
{
x
:
1
,
y
:
10
,
z
:
1
}
m_LocalRotation
:
{
x
:
0
,
y
:
0
,
z
:
0
,
w
:
1
}
m_LocalPosition
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_LocalScale
:
{
x
:
1
0
,
y
:
10
,
z
:
1
}
m_Children
:
[]
m_Father
:
{
fileID
:
0
}
m_RootOrder
:
0
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
9
0
}
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
---
!u!33
&4081910931583206814
MeshFilter
:
m_ObjectHideFlags
:
0
...
...
@@ -111,4 +111,4 @@ MonoBehaviour:
hitSfx
:
-
{
fileID
:
8300000
,
guid
:
e60d0bfc8448c5040af14e9faeaecae5
,
type
:
3
}
-
{
fileID
:
8300000
,
guid
:
b90743fe091960d4f837d44bbd2ad318
,
type
:
3
}
direction
:
{
x
:
0
,
y
:
0
,
z
:
0
}
direction
:
{
x
:
0
,
y
:
1
,
z
:
0
}
RhythmKata/Assets/Resources/SFX/SFX Project/sfx Project/Samples/Recorded.meta
deleted
100644 → 0
View file @
6199b686
fileFormatVersion: 2
guid: d9a533cec04e2124e9c31541b4f63e72
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
RhythmKata/Assets/Scripts/EdgeNoteObject.cs
View file @
48cee20a
...
...
@@ -6,6 +6,8 @@ public class EdgeNoteObject : NoteObject
{
[
SerializeField
]
private
Vector3
direction
;
private
const
float
radius
=
100f
;
public
void
Init
(
HandType
hand
)
{
Material
mat
=
GetComponent
<
Renderer
>().
material
;
...
...
@@ -28,7 +30,22 @@ public class EdgeNoteObject : NoteObject
public
override
void
SetPosition
(
float
remainedTime
)
{
transform
.
position
=
Vector3
.
Lerp
(
endPoint
,
endPoint
+
new
Vector3
(
0
,
0
,
200
),
remainedTime
/
maxRemainedTime
);
if
(
remainedTime
>
0.5f
)
{
transform
.
position
=
new
Vector3
(
0
,
0
,
Mathf
.
Lerp
(
radius
,
500
,
(
remainedTime
-
0.5f
)
*
2
));
}
else
{
float
angle
=
Mathf
.
Lerp
(
0
,
90
,
Mathf
.
Pow
(
remainedTime
*
2
-
1
,
2
));
transform
.
position
=
Quaternion
.
Euler
(
direction
.
x
*
angle
,
direction
.
y
*
angle
,
0
)
*
new
Vector3
(
0
,
0
,
radius
);
transform
.
LookAt
(
Vector3
.
zero
);
}
//transform.position = Vector3.Lerp(endPoint, endPoint + new Vector3(0, 0, 200), remainedTime);
}
public
override
bool
IsHit
(
Ray
ray
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment