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) 🔗

该段的第二个点的位置。