1
2

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ちゃんが床をすり抜ける

Posted at

使用バージョン

バージョンは以下を使用しています。

Unity, Package Ver
Unity 2021.3.12f1
Unity-Chan! Model 1.2.2
Standard Assets (for Unity 2018.4) 1.1.6

Unityちゃんが床に立ってくれず、すり抜けて落下してしまう!

床を作り、Unityちゃんの設定も行い、実行!
しかし、床を颯爽とすり抜けて、どこまでも落下していくUnityちゃん。

検索するとColliderやRigidbodyの設定が必要とのこと。
でもCapsule Colliderとか設定されているけれど…
床もPlane、大丈夫のような?何が問題?と検索を続ける。

対処方法

Layer同士の衝突判定というのがあり、それがチェックされていないとダメの様子。
[Edit] -> [Project Settings] -> [Physics] -> [Layer Collision Matrix]を確認する。
DefaultとDefaultはチェックが…ない!

画像(Layer Collision Max)

LayerというのはInspectorの右上の方にあります。
UnityちゃんをPlayerに、床をTerrainにして無事着地するようになりました。
221103_002.PNG

参照サイト

[Unity][character]配置したキャラクターが床をすり抜ける現象

1
2
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
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?