teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

誤字

2019/02/13 07:18

投稿

SaharaDesert
SaharaDesert

スコア16

title CHANGED
File without changes
body CHANGED
@@ -38,7 +38,7 @@
38
38
 
39
39
 
40
40
  void Update() {
41
- if (Input.GetKey("a") && !jumpChecker) {
41
+ if (Input.GetKey("a") && !jumpChecker2) {
42
42
  //((Y軸+止まる位置)/Y軸)
43
43
  //float hoge = ((height2 + LandingPosY) / height2);
44
44
  float hoge = ((LandingPosY * 2) / height2);
@@ -61,7 +61,6 @@
61
61
  initPositionX2 = transform.position.x; // ジャンプ開始時のX座標を覚えておく
62
62
 
63
63
 
64
- jumpStart2 = false;
65
64
  }
66
65
  if (jumpChecker2)
67
66
  {

1

誤字

2019/02/13 07:18

投稿

SaharaDesert
SaharaDesert

スコア16

title CHANGED
File without changes
body CHANGED
@@ -54,11 +54,11 @@
54
54
  //Y軸
55
55
  fixedGravityY2 = -2 * height2 / (time2 * time2);
56
56
  initVelocityY2 = 2 * height2 / time2;
57
- initPositionY2 = target.transform.position.y;
57
+ initPositionY2 = transform.position.y;
58
58
 
59
59
  //X軸
60
60
  initVelocityX2 = (width2*hoho) / jumpTime2; // 距離widthをjumpTime秒かけて移動する場合の速度
61
- initPositionX2 = target.transform.position.x; // ジャンプ開始時のX座標を覚えておく
61
+ initPositionX2 = transform.position.x; // ジャンプ開始時のX座標を覚えておく
62
62
 
63
63
 
64
64
  jumpStart2 = false;
@@ -90,7 +90,7 @@
90
90
  }
91
91
  }
92
92
 
93
- target.transform.position = pos;
93
+ transform.position = pos;
94
94
  }
95
95
 
96
96
  }