Confirmedusers
13,514
edits
Mirotworez (talk | contribs) (Created page with "Кроме того, вы можете указать <code>SizeEvolve</code> вот так...") |
Mirotworez (talk | contribs) (Created page with "Это свойство полезно для частиц в воде, которые должны исчезнуть, достигнув поверхности (умерет...") |
||
(9 intermediate revisions by the same user not shown) | |||
Line 178: | Line 178: | ||
[[File:Particles (growing size).gif|300px]] | [[File:Particles (growing size).gif|300px]] | ||
Существует множество функций EnumTransformFunction, с которыми вы можете поиграться. Линейный — самый простой. | |||
=== | === Модель === | ||
Есть два типа моделей. <code>Cube</code> (тот, который мы использовали до сих пор) и <code>Quads</code>: | |||
<syntaxhighlight lang="c#"> | <syntaxhighlight lang="c#"> | ||
Line 190: | Line 190: | ||
[[File:Particles (quads).gif|300px]] | [[File:Particles (quads).gif|300px]] | ||
=== | === Непрозрачность === | ||
Четырехугольники поддерживают пользовательскую непрозрачность. Это позволяет сделать их прозрачными... | |||
<syntaxhighlight lang="c#"> | <syntaxhighlight lang="c#"> | ||
Line 200: | Line 200: | ||
[[File:Particles (opacity).gif|300px]] | [[File:Particles (opacity).gif|300px]] | ||
Подобно <code>SizeEvolve</code>, вы можете добавить <code>OpacityEvolve</code>... | |||
<syntaxhighlight lang="c#"> | <syntaxhighlight lang="c#"> | ||
Line 208: | Line 208: | ||
[[File:Particles (decreasing opacity).gif|300px]] | [[File:Particles (decreasing opacity).gif|300px]] | ||
=== | === Самоходный === | ||
Это свойство заставит частицы не терять свою скорость, даже если они столкнутся с чем-то, как только места будет достаточно, они продолжат лететь в том же направлении (с той же скоростью)... | |||
<syntaxhighlight lang="c#"> | <syntaxhighlight lang="c#"> | ||
Line 219: | Line 219: | ||
[[File:Particles (selfpropelled).gif|300px]] | [[File:Particles (selfpropelled).gif|300px]] | ||
=== | === Умереть в воздухе/жидкости === | ||
Это свойство полезно для частиц в воде, которые должны исчезнуть, достигнув поверхности (умереть в жидкости). Конечно, это можно использовать и наоборот (умереть в воздухе). | |||
{{Navbox/modding|Vintage Story}} | {{Navbox/modding|Vintage Story}} |