Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
PlaneMesh
Hérite de : PrimitiveMesh < Mesh < Resource < RefCounted < Object
Hérité par : QuadMesh
Classe représentant un planaire PrimitiveMesh.
Description
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 orientation to FACE_Z.
Note: 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 subdivide_depth and subdivide_width until you no longer notice UV jittering.
Propriétés
|
||
|
||
|
||
|
||
|
Énumérations
enum Orientation: 🔗
Orientation FACE_X = 0
PlaneMesh fera face à l'axe X positif.
Orientation FACE_Y = 1
PlaneMesh fera face à l'axe Y positif. Cela correspond au comportement de PlaneMesh dans Godot 3.x.
Orientation FACE_Z = 2
PlaneMesh fera face à l'axe z positif. Cela correspond au comportement de QuadMesh dans Godot 3.x.
Descriptions des propriétés
Vector3 center_offset = Vector3(0, 0, 0) 🔗
Décalage du plan généré. Utile pour des particules.
Orientation orientation = 1 🔗
void set_orientation(value: Orientation)
Orientation get_orientation()
Direction vers laquelle le PlaneMesh fait face.
Vector2 size = Vector2(2, 2) 🔗
Taille du plan généré.
Le nombre de sous-divisions suivant l'axe Z.
Le nombre de sous-divisions suivant l'axe X.