04. Let's rotate and enlarge!¶
In this chapter, we rotate and enlarge particles. We also change the sprite shape from a square to a rectangle. This makes it possible to create complicated effects.
Rotation and expansion¶
We made it possible to download the effect created in advance from the link below.
Let's rotate the particles immediately. Rotation can be specified from the "Rotation" window.
Click an icon of "Rotation" window to show "Rotation" window.
An icon of Rotation window
Just like the position, there are multiple ways to specify rotation.
Fixed angle is selected.
Change this to
Then enter 5 for
Angular Velocity z.
This means that you rotate 5 degrees per frame about the Z direction (front direction) as the axis.
After inputting, you play the effect ... nothing changes! This is because in the initial setting of drawing by sprite, the sprite always faces the front even if the particle rotates.
In the "Render Settings" window, change the
Rotated Billboard is a layout method in which the rectangular shape faces the front while the Z axis rotation is enable.
When setting the
Rotated Billboard, you can see that the rectangle rotates about the Z direction (front direction).
As with position and rotation, you can scale particles. You can specify scale from the "Sale" window.
Click an icon of "Scale" window to show "Scale" window.
An icon of Scale window
Just like the position and rotation, there is also a way to specify more than one in the scale.
In the initial setting, the
Fixed Scale is selected.
Change this to
Then input 0.01 for
Expansion Speed can also be set individually in the X, Y, Z direction, but
Expansion Speed is often the same for all directions.
Therefore, you can set a
You can see that the sprite is rotating and enlarging.
Sprite shape can be changed from square into rectangle, trapezoid, etc.
Vertex Coords from the "Render Settings" window, from
Then you can specify the coordinates of the vertices of the sprite.
For this time, let's input as follows to enlarge the sprite vertically.
You can see that the vertical length of sprite is longer than horizontal length of one.
Since it is not good looking as it is, you change parameters as follows.
The "Basic Settings" window¶
Spawn Count to 10
The "Position" window¶
Change into PVA
Change Pos deviation into 2
The "Basic Render Settings" window¶
Texture into particle.png
The "Rotation" window¶
Change angle derivation Z into 180
The "Scale" window¶
Scaling Factor into 0
In this chapter, we explained the sprite rotation and enlargement. In the next chapter, we will create practical effects by making the most of our knowledge.