CircleShape2D

继承: Shape2D < Resource < RefCounted < Object

2D 圆形,旨在用于物理学。

描述

2D 圆形,旨在用于物理学。通常用于为 CollisionShape2D 提供形状。

性能:**CircleShape2D** 可以快速检测碰撞。比 RectangleShape2DCapsuleShape2D 快。

属性

float

radius

10.0


属性说明

float radius = 10.0

  • void set_radius ( float value )

  • float get_radius ( )

圆的半径。

Previous Next


© 版权所有 2014-present Juan Linietsky, Ariel Manzur and the Godot community (CC BY 3.0). Revision b1c660f7.

Built with Sphinx using a theme provided by Read the Docs.