mirror of
https://github.com/godotengine/godot.git
synced 2024-12-27 11:24:59 +08:00
20 lines
1.1 KiB
XML
20 lines
1.1 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<class name="GPUParticlesAttractorSphere3D" inherits="GPUParticlesAttractor3D" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
|
|
<brief_description>
|
|
A spheroid-shaped attractor that influences particles from [GPUParticles3D] nodes.
|
|
</brief_description>
|
|
<description>
|
|
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.
|
|
[b]Note:[/b] Particle attractors only affect [GPUParticles3D], not [CPUParticles3D].
|
|
</description>
|
|
<tutorials>
|
|
</tutorials>
|
|
<members>
|
|
<member name="radius" type="float" setter="set_radius" getter="get_radius" default="1.0">
|
|
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.
|
|
</member>
|
|
</members>
|
|
</class>
|