Up to date

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

GPUParticlesAttractorSphere3D

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

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

描述

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

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

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

属性

float

radius

1.0


属性说明

float radius = 1.0

  • void set_radius ( float value )

  • float get_radius ( )

吸引器球体的半径,使用 3D 单位。

注意:要得到拉伸椭圆形,可以对 GPUParticlesAttractorSphere3D 节点使用非统一缩放。