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...
GPUParticlesAttractorVectorField3D
继承: GPUParticlesAttractor3D < VisualInstance3D < Node3D < Node < Object
盒形吸引器,其中定义了不同的方向和强度,会影响来自 GPUParticles3D 节点的粒子。
描述
盒形吸引器,其中定义了不同的方向和强度,会影响来自 GPUParticles3D 节点的粒子。
与 GPUParticlesAttractorBox3D 不同,GPUParticlesAttractorVectorField3D 使用 texture 来影响盒子内的吸引力强度。可用于创建复杂的吸引场景,其中粒子根据其位置向不同方向移动。这对于沙尘暴等天气影响很有用。
粒子吸引器是实时工作的,可以在游戏过程中进行移动、旋转、缩放。与碰撞形状不同,吸引器还支持不统一的缩放。
注意:粒子吸引器只会影响 GPUParticles3D,不影响 CPUParticles3D。
属性
|
||
属性说明
Vector3 size = Vector3(2, 2, 2)
🔗
向量场盒子的尺寸,使用 3D 单位。
要使用的 3D 纹理。会在纹理像素之间进行线性插值。
注意:为了获得更好的性能,3D 纹理的分辨率应该反映该吸引器的 size。由于粒子吸引力通常是低频数据,因此可以将纹理保持在较低分辨率,例如 64×64×64。