質問編集履歴
1
ご指摘ありがとうございました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
###とりあえず、コード全文
|
12
12
|
|
13
|
-
|
13
|
+
```
|
14
14
|
|
15
15
|
public class Nejikocontroller : MonoBehaviour {
|
16
16
|
|
@@ -144,15 +144,17 @@
|
|
144
144
|
|
145
145
|
}
|
146
146
|
|
147
|
-
|
147
|
+
```
|
148
148
|
|
149
149
|
###疑問部分
|
150
|
+
|
151
|
+
```
|
150
152
|
|
151
153
|
float ratiox = (targetline * lanewidth - transform.position.x) / lanewidth;
|
152
154
|
|
153
155
|
movedirection.x = ratiox * speedx;
|
154
156
|
|
155
|
-
|
157
|
+
```
|
156
158
|
|
157
159
|
まずlanewidthは1なのに割ってる時点で正しいコードとは思えないです・・
|
158
160
|
|