From 510c8e642c5f0eacf87c916f4d1da8c294bd4296 Mon Sep 17 00:00:00 2001 From: "Leandro (cerberus1746) Benedet Garcia" Date: Sun, 10 Aug 2025 18:24:13 -0300 Subject: [PATCH] fix function used in the code example --- doc/classes/PhysicsShapeQueryParameters3D.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/classes/PhysicsShapeQueryParameters3D.xml b/doc/classes/PhysicsShapeQueryParameters3D.xml index c42d778d23..06271e964e 100644 --- a/doc/classes/PhysicsShapeQueryParameters3D.xml +++ b/doc/classes/PhysicsShapeQueryParameters3D.xml @@ -35,7 +35,7 @@ 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: [codeblocks] [gdscript] - var shape_rid = PhysicsServer3D.shape_create(PhysicsServer3D.SHAPE_SPHERE) + var shape_rid = PhysicsServer3D.sphere_shape_create() var radius = 2.0 PhysicsServer3D.shape_set_data(shape_rid, radius) @@ -48,7 +48,7 @@ PhysicsServer3D.free_rid(shape_rid) [/gdscript] [csharp] - RID shapeRid = PhysicsServer3D.ShapeCreate(PhysicsServer3D.ShapeType.Sphere); + RID shapeRid = PhysicsServer3D.SphereShapeCreate(); float radius = 2.0f; PhysicsServer3D.ShapeSetData(shapeRid, radius);