Updated Scale (markdown)

bi0qaw 2017-11-25 16:55:10 +01:00
parent 2631893311
commit 84ccd11b37

@ -33,5 +33,32 @@ Note that the scaling factor just multiplies all the scalings applied by the dir
*** ***
Example:
```
set {_circle::*} to circle with radius 1 and density 5
set {_scaled::*} to {_circle::*} scaled by 2
```
With locations:
```
set {_circle::*} to circle at player with radius 1 and density 5
set {_scaled::*} to {_circle::*} scaled at player by 2
```
This example scales the original circle by a factor of 2, which makes the radius of the circle 2 times larger. An image of the result (green particles = original, flame particles = scaled)
![](https://i.imgur.com/Cq1SyzM.png)
***
We can use the direction vector to create an ellipse:
```
set {_circle::*} to circle with radius 1 and density 5
set {_scaled::*} to {_circle::*} scaled by 1 in direction of vector 2, 1, 1
```
With locations:
```
set {_circle::*} to circle at player with radius 1 and density 5
set {_scaled::*} to {_circle::*} scaled at player by 1 in direction of vector 2, 1, 1
```
The result is an ellipse that has a two times larger radius in the x-direction than in the z-direction. Image with the green particles showing the original circle and the flame particles showing the ellipse:
![](https://i.imgur.com/e6W2mhm.png)