1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【Unity】Addforceでジャンプ移動すると壁に突き刺さる

Posted at

# はじめに
RigidBody + Addforce(物理移動)を利用する方法でキャラクターを制御している際、移動しながらジャンプするとキャラクターが壁に突き刺さって落ちてこなくなる問題が起こったため対策方法を本書に記録する

対策

ColliderのFriction(摩擦)を下げるとキャラクターが落ちてくるようになる。

  • PhysicMaterialを作成する

  • 各Frictionを0に設定する

  • FrictionCombineをMinimumに設定する
    image.png

  • キャラクターのColliderにPhysicMaterialを割り当てる
    image.png

以上

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?