Skip to content

Commit 510c8e6

Browse files
fix function used in the code example
1 parent a3b42d8 commit 510c8e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/classes/PhysicsShapeQueryParameters3D.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
The queried shape's [RID] that will be used for collision/intersection queries. Use this over [member shape] if you want to optimize for performance using the Servers API:
3636
[codeblocks]
3737
[gdscript]
38-
var shape_rid = PhysicsServer3D.shape_create(PhysicsServer3D.SHAPE_SPHERE)
38+
var shape_rid = PhysicsServer3D.sphere_shape_create()
3939
var radius = 2.0
4040
PhysicsServer3D.shape_set_data(shape_rid, radius)
4141

@@ -48,7 +48,7 @@
4848
PhysicsServer3D.free_rid(shape_rid)
4949
[/gdscript]
5050
[csharp]
51-
RID shapeRid = PhysicsServer3D.ShapeCreate(PhysicsServer3D.ShapeType.Sphere);
51+
RID shapeRid = PhysicsServer3D.SphereShapeCreate();
5252
float radius = 2.0f;
5353
PhysicsServer3D.ShapeSetData(shapeRid, radius);
5454

0 commit comments

Comments
 (0)