1 Star 1 Fork 0

天天编程/godot-docs

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
class_segmentshape2d.rst 1.86 KB
Copy Edit Raw Blame History
github_url: hide

SegmentShape2D

Inherits: :ref:`Shape2D<class_Shape2D>` < :ref:`Resource<class_Resource>` < :ref:`Reference<class_Reference>` < :ref:`Object<class_Object>`

Segment shape for 2D collisions.

Description

Segment shape for 2D collisions. Consists of two points, a and b.

Properties

:ref:`Vector2<class_Vector2>` :ref:`a<class_SegmentShape2D_property_a>` Vector2( 0, 0 )
:ref:`Vector2<class_Vector2>` :ref:`b<class_SegmentShape2D_property_b>` Vector2( 0, 10 )

Property Descriptions

Default Vector2( 0, 0 )
Setter set_a(value)
Getter get_a()

The segment's first point position.


Default Vector2( 0, 10 )
Setter set_b(value)
Getter get_b()

The segment's second point position.

Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ttcode-net/godot-docs.git
git@gitee.com:ttcode-net/godot-docs.git
ttcode-net
godot-docs
godot-docs
master

Search