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.

GPUParticlesAttractorVectorField3D

繼承: GPUParticlesAttractor3D < VisualInstance3D < Node3D < Node < Object

盒狀 3D 粒子吸引器,內部存在強度變化,會影響 GPUParticles3D 節點。

說明

盒狀 3D 粒子吸引器,內部存在強度變化,會影響 GPUParticles3D 節點。

GPUParticlesAttractorBox3D 不同,GPUParticlesAttractorVectorField3D 使用 texture 來影響盒子內的吸引力強度。可用於建立複雜的吸引場景,其中粒子根據其位置向不同方向移動。這對於沙塵暴等天氣影響很有用。

注意:粒子吸引器只會影響 GPUParticles3D,不影響 CPUParticles3D

屬性

Vector3

size

Vector3(2, 2, 2)

Texture3D

texture


屬性說明

Vector3 size = Vector3(2, 2, 2) 🔗

向量場盒子的尺寸,使用 3D 單位。


Texture3D texture 🔗

要使用的 3D 紋理。會在紋理圖元之間進行線性插值。

注意:為了獲得更好的性能,3D 紋理的解析度應該反映該吸引器的 size。由於粒子吸引力通常是低頻資料,因此可以將紋理保持在較低解析度,例如 64×64×64。