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...
OccluderShapeSphere¶
Inherits: OccluderShape < Resource < Reference < Object
Spherical occlusion primitive for use with the Occluder node.
Descripción¶
OccluderShapes are resources used by Occluder nodes, allowing geometric occlusion culling.
This shape can include multiple spheres. These can be created and deleted either in the Editor inspector or by calling set_spheres
. The sphere positions can be set by dragging the handle in the Editor viewport. The radius can be set with the smaller handle.
Propiedades¶
|
Métodos¶
void |
set_sphere_position ( int index, Vector3 position ) |
void |
set_sphere_radius ( int index, float radius ) |
Descripciones de Propiedades¶
Array spheres
Default |
|
Setter |
set_spheres(value) |
Getter |
get_spheres() |
The sphere data can be accessed as an array of Planes. The position of each sphere is stored in the normal
, and the radius is stored in the d
value of the plane.
Descripciones de Métodos¶
Sets an individual sphere's position.
Sets an individual sphere's radius.