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

Eredita: Shape2D < Resource < RefCounted < Object

Un segmento di linea 2D utilizzato per le collisioni fisiche.

Descrizione

Una forma di segmento di linea 2D, pensata per l'uso in fisica. Solitamente utilizzata per fornire una forma per un CollisionShape2D.

Proprietà

Vector2

a

Vector2(0, 0)

Vector2

b

Vector2(0, 10)


Descrizioni delle proprietà

Vector2 a = Vector2(0, 0) 🔗

La posizione del primo punto del segmento.


Vector2 b = Vector2(0, 10) 🔗

La posizione del secondo punto del segmento.