Version: 2023.1
言語: 日本語
Collider 2D
Box Collider 2D component reference

Circle Collider 2D component reference

The Circle Collider 2D component is a Collider 2D that interacts with the 2D physics system for collision detection. This collider 2D is circular in shape, with a defined position and radius within the local coordinate space of a sprite. Adjust the component properties to change the shape and behavior of the collider 2D.

Circle Collider 2D component Inspector window properties.
Circle Collider 2D component Inspector window properties.
プロパティ 機能
Material 摩擦やバウンスなどの、衝突のプロパティを決定する Physics Material 2D を選択します。
Is Trigger Collider 2D をトリガーとして動作させたい場合は、このオプションを有効にします。このオプションを有効にすると、物理演算システムが Collider 2D を無視します。
Used by Effector このオプションを有効にすると、アタッチされた Effector 2D コンポーネントがこのコライダーを使用します。
Composite Operations Select the composite operation used by an attached Composite Collider 2D component.

Note: When you select any operation besides None, the following properties—Material, Is Trigger, Used By Effector, and Edge Radius—become controlled by the attached Composite Collider 2D component and are no longer available in this collider’s properties.
None Select this to have no composite operation take place.
Merge Select this to have this composite operation compose geometry using a Boolean OR operation.
Intersect Select this to have this composite operation compose geometry using a Boolean AND operation.
Difference Select this to have this composite operation compose geometry using a Boolean NOT operation.
Flip Select this to have this composite operation compose geometry using a Boolean XOR operation.
Offset Collider 2D ジオメトリのローカルオフセット値を設定します。
Radius Circle Collider 2D の半径をローカル空間単位で設定します。
Layer Overrides レイヤーオーバーライド設定を使用する場合はこのオプションを展開してください。
Layer Override Priority この Collider 2D がそれ自体と他の Collider 2D との接触が起こるべきか否かに関する競合の解決に使用する、決定の優先度を割り当てます。詳細は API のページを参照してください。
Include Layers この Collider2D が他の Collider2D と接触するかどうかの決定時に含める追加的レイヤーを選択してください。詳細は API ドキュメントを参照してください。
Exclude Layers この Collider2D が他の Collider2D と接触するかどうかの決定時に除外する追加的レイヤーを選択してください。詳しくは API ドキュメントを参照してください。
Force Send Layers 他の Collider2D とのコリジョン接触中にこの Collider2D が力を送ることができるレイヤーを選択します。詳細は API のドキュメントを参照してください。
Force Receive Layers 他の Collider2D とのコリジョン接触中にこの Collider2D が力を受け取ることができるレイヤーを選択します。詳細は API のドキュメントを参照してください。
Contact Capture Layers この Collider 2D と接触する他の Collider 2D のレイヤーで、キャプチャしたいものを選択します。詳細は API ドキュメントを参照してください。
Callback Layers この Collider2D が他の Collider2D との接触中に衝突を報告したりコールバックをトリガーするレイヤーを選択します。詳細は API のドキュメントを参照してください。

その他の参考資料

CircleCollider2D

Collider 2D
Box Collider 2D component reference