Skip to content
0.2.0-dev Download ZIP
18 lines ·905 B Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="SphereShape3D" inherits="Shape3D" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 A 3D sphere shape used for physics collision.
5 </brief_description>
6 <description>
7 A 3D sphere shape, intended for use in physics. Usually used to provide a shape for a [CollisionShape3D].
8 [b]Performance:[/b] [SphereShape3D] is fast to check collisions against. It is faster than [BoxShape3D], [CapsuleShape3D], and [CylinderShape3D].
9 </description>
10 <tutorials>
11 <link title="3D Physics Tests Demo">https://godotengine.org/asset-library/asset/2747</link>
12 </tutorials>
13 <members>
14 <member name="radius" type="float" setter="set_radius" getter="get_radius" default="0.5">
15 The sphere's radius. The shape's diameter is double the radius.
16 </member>
17 </members>
18</class>