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.

SegmentShape2D

繼承: Shape2D < Resource < RefCounted < Object

2D 線段形狀,旨在用於物理學。

說明

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

屬性

Vector2

a

Vector2(0, 0)

Vector2

b

Vector2(0, 10)


屬性說明

Vector2 a = Vector2(0, 0) 🔗

該段的第一點的位置。


Vector2 b = Vector2(0, 10) 🔗

該段的第二個點的位置。