Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

CircleShape2D

繼承: Shape2D < Resource < RefCounted < Object

2D 圓形,旨在用於物理學。

說明

2D 圓形,旨在用於物理學。通常用於為 CollisionShape2D 提供形狀。

性能:CircleShape2D 可以快速偵測碰撞。比 RectangleShape2DCapsuleShape2D 快。

屬性

float

radius

10.0


屬性說明

float radius = 10.0 🔗

  • void set_radius(value: float)

  • float get_radius()

圓的半徑。