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...
GPUParticlesCollisionSphere3D¶
继承: GPUParticlesCollision3D < VisualInstance3D < Node3D < Node < Object
影响 GPUParticles3D 节点的球形 3D 粒子碰撞形状。
描述¶
影响 GPUParticles3D 节点的球形 3D 粒子碰撞形状。
粒子碰撞形状是实时工作的,可以在游戏过程中进行移动、旋转、缩放。与吸引器不同,碰撞形状的非均匀缩放不被支持。
注意:GPUParticles3D 的处理材质上的 ParticleProcessMaterial.collision_mode 必须为 ParticleProcessMaterial.COLLISION_RIGID 或 ParticleProcessMaterial.COLLISION_HIDE_ON_CONTACT,碰撞才能发挥作用。
注意:粒子碰撞只会影响 GPUParticles3D,不影响 CPUParticles3D。
属性¶
|
属性说明¶
float radius = 1.0
碰撞球的半径,以 3D 单位表示。