Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

GPUParticlesAttractorBox3D

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

影响来自 GPUParticles3D 节点的粒子的盒形吸引器。

描述

影响来自 GPUParticles3D 节点的粒子的盒形吸引器。可用于将粒子吸引到其原点,或将它们推离其原点。

粒子吸引器是实时工作的,可以在游戏过程中进行移动、旋转、缩放。与碰撞形状不同,吸引器还支持不统一的缩放。

注意:粒子吸引器只会影响 GPUParticles3D,不影响 CPUParticles3D

属性

Vector3

size

Vector3(2, 2, 2)


属性说明

Vector3 size = Vector3(2, 2, 2)

吸引器盒的尺寸,使用 3D 单位。