Skip to content
0.2.0-dev Download ZIP
40 lines ·2.2 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="PlaneMesh" inherits="PrimitiveMesh" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 Class representing a planar [PrimitiveMesh].
5 </brief_description>
6 <description>
7 Class representing a planar [PrimitiveMesh]. This flat mesh does not have a thickness. By default, this mesh is aligned on the X and Z axes; this default rotation isn't suited for use with billboarded materials. For billboarded materials, change [member orientation] to [constant FACE_Z].
8 [b]Note:[/b] When using a large textured [PlaneMesh] (e.g. as a floor), you may stumble upon UV jittering issues depending on the camera angle. To solve this, increase [member subdivide_depth] and [member subdivide_width] until you no longer notice UV jittering.
9 </description>
10 <tutorials>
11 </tutorials>
12 <members>
13 <member name="center_offset" type="Vector3" setter="set_center_offset" getter="get_center_offset" default="Vector3(0, 0, 0)">
14 Offset of the generated plane. Useful for particles.
15 </member>
16 <member name="orientation" type="int" setter="set_orientation" getter="get_orientation" enum="PlaneMesh.Orientation" default="1">
17 Direction that the [PlaneMesh] is facing.
18 </member>
19 <member name="size" type="Vector2" setter="set_size" getter="get_size" default="Vector2(2, 2)">
20 Size of the generated plane.
21 </member>
22 <member name="subdivide_depth" type="int" setter="set_subdivide_depth" getter="get_subdivide_depth" default="0">
23 Number of subdivision along the Z axis.
24 </member>
25 <member name="subdivide_width" type="int" setter="set_subdivide_width" getter="get_subdivide_width" default="0">
26 Number of subdivision along the X axis.
27 </member>
28 </members>
29 <constants>
30 <constant name="FACE_X" value="0" enum="Orientation">
31 [PlaneMesh] will face the positive X-axis.
32 </constant>
33 <constant name="FACE_Y" value="1" enum="Orientation">
34 [PlaneMesh] will face the positive Y-axis. This matches the behavior of the [PlaneMesh] in Godot 3.x.
35 </constant>
36 <constant name="FACE_Z" value="2" enum="Orientation">
37 [PlaneMesh] will face the positive Z-axis. This matches the behavior of the QuadMesh in Godot 3.x.
38 </constant>
39 </constants>
40</class>