Skip to content
0.2.0-dev Download ZIP
33 lines ·2.0 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="ArrayOccluder3D" inherits="Occluder3D" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 3D polygon shape for use with occlusion culling in [OccluderInstance3D].
5 </brief_description>
6 <description>
7 [ArrayOccluder3D] stores an arbitrary 3D polygon shape that can be used by the engine's occlusion culling system. This is analogous to [ArrayMesh], but for occluders.
8 See [OccluderInstance3D]'s documentation for instructions on setting up occlusion culling.
9 </description>
10 <tutorials>
11 <link title="Occlusion culling">$DOCS_URL/tutorials/3d/occlusion_culling.html</link>
12 </tutorials>
13 <methods>
14 <method name="set_arrays">
15 <return type="void" />
16 <param index="0" name="vertices" type="PackedVector3Array" />
17 <param index="1" name="indices" type="PackedInt32Array" />
18 <description>
19 Sets [member indices] and [member vertices], while updating the final occluder only once after both values are set.
20 </description>
21 </method>
22 </methods>
23 <members>
24 <member name="indices" type="PackedInt32Array" setter="set_indices" getter="get_indices" default="PackedInt32Array()">
25 The occluder's index position. Indices determine which points from the [member vertices] array should be drawn, and in which order.
26 [b]Note:[/b] The occluder is always updated after setting this value. If creating occluders procedurally, consider using [method set_arrays] instead to avoid updating the occluder twice when it's created.
27 </member>
28 <member name="vertices" type="PackedVector3Array" setter="set_vertices" getter="get_vertices" default="PackedVector3Array()">
29 The occluder's vertex positions in local 3D coordinates.
30 [b]Note:[/b] The occluder is always updated after setting this value. If creating occluders procedurally, consider using [method set_arrays] instead to avoid updating the occluder twice when it's created.
31 </member>
32 </members>
33</class>