LoginSignup
0

More than 5 years have passed since last update.

衝突したコリジョンの名前を判定する

Posted at

衝突したコリジョンの名前を判定する

問題点

image

対応

image

修正前
image

修正後
image

  1. Get Display Nameで衝突したオブジェクトの表示名を取得
  2. Maches WildCardで表示名がキャラクター名と一致しているか確認する
  3. キャラクター名と一致しなかった時だけ処理を実行する

image

その他の対応策

発射するポイントを遠ざける
一番処理的にも軽いので好ましいが、銃口から発射している感じがなくなってしまう
image

プレイヤーのCollisionを小さくする
他の処理に影響が出てしまうため、やりたくない
image

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
0