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.

GPUParticlesCollisionSphere3D

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

球狀的 3D 粒子碰撞形狀,影響 GPUParticles3D 節點。

說明

球狀的 3D 粒子碰撞形狀,影響 GPUParticles3D 節點。

注意:GPUParticles3D 的處理材質上,ParticleProcessMaterial.collision_mode 必須是 ParticleProcessMaterial.COLLISION_RIGIDParticleProcessMaterial.COLLISION_HIDE_ON_CONTACT ,才能使碰撞生效。

注意:粒子碰撞只影響 GPUParticles3D,不影響 CPUParticles3D

屬性

float

radius

1.0


屬性說明

float radius = 1.0 🔗

  • void set_radius(value: float)

  • float get_radius()

碰撞球的半徑,以 3D 單位表示。