Edge lengths of the box, in world units, per axis. A face lies at half this value from the centre.
VfxEmissionBox
Inheritance 1 ancestor · 6 siblings
Class Documentation
Edit documentationAn emission source that is an axis-aligned box centred on
the shape's origin. FillMode chooses where on the box the points lie, and
DistributionMode chooses whether they are random or spread by spawn order.
Properties
Type history (2 revisions)
- 16.1 - 16.2
Embed<VfxVector3DynamicProperty> - since 16.3
Pointer<VfxVector3AnimatedWithRandomDriver>
A VfxVector3AnimatedWithRandomDriver
that shapes the distribution. Its use depends on DistributionMode:
- Random (
0), faces or inside: the driver's value picks the face. The axis with the largest absolute component is the face axis, and its sign picks the side. If the driver is null, the face is random. - Spread, inside: the key range of each axis of the curve sets the range of
that coordinate, from
-1to1for the whole box. Left unset, the range is[-1, 1]. - Spread, faces: a positive key range on an axis enables the positive face, a negative one the negative face, and the faces get particles in proportion to their ranges.
DistributionMode
U8 = 0 16.3
How the points are chosen.
| Value | Points |
|---|---|
0 |
Random for each particle. |
| other | Spread by each particle's index in its spawn batch, in a fixed pattern. On faces, the batch is divided evenly over the faces. On corners, consecutive particles take consecutive corners. |
FillMode
U8 = 0 16.14
Where the points lie.
| Value | Points | Normal |
|---|---|---|
0 |
On the six faces. | The outward normal of the face. |
1 |
Inside the box. | The outward normal of a face: the face that was picked when the points are random, the nearest face when they are spread. |
2 |
On the eight corners. | The diagonal from the centre through the corner. |
Size
Vec3 = [1, 1, 1]
Removed in 16.1
No documentation available yet. Click "Add documentation" to contribute!