mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Replace XML codeblock spaces with tabs
This commit is contained in:
@@ -33,34 +33,34 @@
|
||||
</member>
|
||||
<member name="shape_rid" type="RID" setter="set_shape_rid" getter="get_shape_rid" default="RID()">
|
||||
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 radius = 2.0
|
||||
PhysicsServer3D.shape_set_data(shape_rid, radius)
|
||||
[codeblocks]
|
||||
[gdscript]
|
||||
var shape_rid = PhysicsServer3D.shape_create(PhysicsServer3D.SHAPE_SPHERE)
|
||||
var radius = 2.0
|
||||
PhysicsServer3D.shape_set_data(shape_rid, radius)
|
||||
|
||||
var params = PhysicsShapeQueryParameters3D.new()
|
||||
params.shape_rid = shape_rid
|
||||
var params = PhysicsShapeQueryParameters3D.new()
|
||||
params.shape_rid = shape_rid
|
||||
|
||||
# Execute physics queries here...
|
||||
# Execute physics queries here...
|
||||
|
||||
# Release the shape when done with physics queries.
|
||||
PhysicsServer3D.free_rid(shape_rid)
|
||||
[/gdscript]
|
||||
[csharp]
|
||||
RID shapeRid = PhysicsServer3D.ShapeCreate(PhysicsServer3D.ShapeType.Sphere);
|
||||
float radius = 2.0f;
|
||||
PhysicsServer3D.ShapeSetData(shapeRid, radius);
|
||||
# Release the shape when done with physics queries.
|
||||
PhysicsServer3D.free_rid(shape_rid)
|
||||
[/gdscript]
|
||||
[csharp]
|
||||
RID shapeRid = PhysicsServer3D.ShapeCreate(PhysicsServer3D.ShapeType.Sphere);
|
||||
float radius = 2.0f;
|
||||
PhysicsServer3D.ShapeSetData(shapeRid, radius);
|
||||
|
||||
var params = new PhysicsShapeQueryParameters3D();
|
||||
params.ShapeRid = shapeRid;
|
||||
var params = new PhysicsShapeQueryParameters3D();
|
||||
params.ShapeRid = shapeRid;
|
||||
|
||||
// Execute physics queries here...
|
||||
// Execute physics queries here...
|
||||
|
||||
// Release the shape when done with physics queries.
|
||||
PhysicsServer3D.FreeRid(shapeRid);
|
||||
[/csharp]
|
||||
[/codeblocks]
|
||||
// Release the shape when done with physics queries.
|
||||
PhysicsServer3D.FreeRid(shapeRid);
|
||||
[/csharp]
|
||||
[/codeblocks]
|
||||
</member>
|
||||
<member name="transform" type="Transform3D" setter="set_transform" getter="get_transform" default="Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)">
|
||||
The queried shape's transform matrix.
|
||||
|
||||
Reference in New Issue
Block a user