2020-10-12 16:57:54 +08:00
<?xml version="1.0" encoding="UTF-8" ?>
2023-07-06 16:08:05 +08:00
<class name= "GPUParticlesAttractorSphere3D" inherits= "GPUParticlesAttractor3D" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../class.xsd" >
2020-10-12 16:57:54 +08:00
<brief_description >
2023-06-24 19:19:58 +08:00
A spheroid-shaped attractor that influences particles from [GPUParticles3D] nodes.
2020-10-12 16:57:54 +08:00
</brief_description>
<description >
2023-06-24 19:19:58 +08:00
A spheroid-shaped attractor that influences particles from [GPUParticles3D] nodes. Can be used to attract particles towards its origin, or to push them away from its origin.
Particle attractors work in real-time and can be moved, rotated and scaled during gameplay. Unlike collision shapes, non-uniform scaling of attractors is also supported.
2022-05-13 10:11:01 +08:00
[b]Note:[/b] Particle attractors only affect [GPUParticles3D], not [CPUParticles3D].
2020-10-12 16:57:54 +08:00
</description>
<tutorials >
</tutorials>
<members >
<member name= "radius" type= "float" setter= "set_radius" getter= "get_radius" default= "1.0" >
2022-05-13 10:11:01 +08:00
The attractor sphere's radius in 3D units.
[b]Note:[/b] Stretched ellipses can be obtained by using non-uniform scaling on the [GPUParticlesAttractorSphere3D] node.
2020-10-12 16:57:54 +08:00
</member>
</members>
</class>