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.

SphereShape3D

繼承: Shape3D < Resource < RefCounted < Object

3D 球體形狀,旨在用於物理學。

說明

3D 球體形狀,旨在用於物理學。通常用於為 CollisionShape3D 提供形狀。

性能:SphereShape3D 可以快速偵測碰撞。比 BoxShape3DCapsuleShape3DCylinderShape3D 快。

教學

屬性

float

radius

0.5


屬性說明

float radius = 0.5 🔗

  • void set_radius(value: float)

  • float get_radius()

球體的半徑。形狀的直徑是半徑的兩倍。