Modding:Simple Particles: Difference between revisions

From Vintage Story Wiki
no edit summary
No edit summary
No edit summary
Line 1: Line 1:
VintageStory offers a variety of different types of particles. This tutorial will explain you how to create particles in code and show you some of the possibilities. If you want to have an example of where to use them I either suggested you to the read about the block particles or about collectibles. <- Add links
VintageStory offers a variety of different types of particles. This tutorial will explain you how to create particles in code and show you some of the possibilities. If you want to have an example of where to use them I either suggested you to the read about the block particles or about collectibles. <- Add links
= SimpleParticleProperties =


== Spawn particles ==
== Spawn particles ==
Line 165: Line 163:
=== Self Propelled ===
=== Self Propelled ===


=== Die In Air/ Liquid ===
<syntaxhighlight lang="c#">
    myParticles.minVelocity = new Vec3f((float) (rand.NextDouble() - 0.5), 1f, (float) (rand.NextDouble() - 0.5));
    myParticles.SelfPropelled = true;
</syntaxhighlight>


[[File:Particles (selfpropelled).gif|300px]]


= Other Particles =
=== Die In Air/ Liquid ===
 
== AirBubbleParticles ==
 
== BlockVoxelParticles ==
 
== ExplosionParticles ==


== WaterSplashParticles ==
Can be used for particles in water, which should disappear once they reach the surface.
Confirmedusers, editor, Administrators
886

edits