Skip to content

VfxShapeBox

14.1

Inheritance 2 ancestors · 2 siblings

Class Documentation

Edit documentation

A box spawn shape centred on the birth position.

In interior mode (flags bit 0x1, see VfxShapeVolume) the offset is uniform in the solid box: each axis is uniform in -Size..Size. The shape does not turn the birth velocity or acceleration.

In surface mode (bit 0x1 clear) the shape picks a point on the +Z face: x uniform in -Size.x..Size.x, y uniform in -Size.y..Size.y, z equal to Size.z. It then turns the offset, the birth velocity and the birth acceleration by one of four quarter turns about Y, followed by a turn of 0 or 90 degrees about Z. The point lands on each face with these probabilities:

Face Probability
+Z 1/4
-Z 1/4
+X, -X, +Y, -Y 1/8 each

A birth velocity along +Z leaves along the normal of the chosen face.

Properties

Size

Vec3 = [0, 0, 0]
Edit documentation

Half extents of the box per axis, in world units, in the emitter's local frame.