[過去ログ] 【ゲームエンジン】Unityなんでも質問スレpart9 (1002レス)
上下前次1-新
このスレッドは過去ログ倉庫に格納されています。
次スレ検索 歴削→次スレ 栞削→次スレ 過去ログメニュー
885(1): 2023/03/24(金)23:51 ID:1hj9qzrJ(2/2) AAS
 void FixedUpdate()  
     { 
  //方向の判断 
  float horizontalKey = Input.GetAxis("Horizontal"); 
  Debug.Log(horizontalKey); 
  
  if(horizontalKey > 0) 
  { 
   rb.velocity = new Vector2(speed,rb.velocity.y); 
  } 
  else if(horizontalKey < 0) 
  { 
   rb.velocity = new Vector2(-speed,rb.velocity.y); 
  } 
     } 
  
 ridigbodyの移動なんですが、ヌメーっと動くんですが、キビキビ動かしたい場合はどうしたらいいんでしょうか? 
 慣性が働いている感じになります 
上下前次1-新書関写板覧索設栞歴
あと 117 レスあります
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ
ぬこの手 ぬこTOP 0.010s