当前位置:网站首页>Unity technical manual - limit velocity over lifetime sub module and inherit velocity sub module

Unity technical manual - limit velocity over lifetime sub module and inherit velocity sub module

2022-06-23 10:26:00 sesame seeds

Share previous articles

This article is about 3 Thousand characters , Novice reading needs 9 minute , Review needs 2 minute Collect at any time, no longer get lost

About author

as everyone knows , Life is a long process , constantly overcome difficulties , Constantly reflect on the process of progress . In this process, there will be a lot of questions and thoughts about life , So I decided to put my thinking , Share all your experiences and stories , To find resonance !!!
Focus on Android/Unity And various game development skills , as well as Share various resources ( Website 、 Tools 、 material 、 Source code 、 Games etc. )
If you need anything, welcome me , Communication groups make learning No longer alone .

 Insert picture description here

Premise

This is what Xiao Kong insisted on writing Unity Novice series , Welcome to taste .

Novice (√√√)

bosses (√)
The particle section is a series of articles , And the introduction was very detailed , Suggest Collection .

Practice process

Life cycle speed limit (Limit Velocity Over Lifetime) Sub module

image.png
Separate Axes: Split the shaft into separate X、Y and Z component . When Dampen Not for 0 Is useful when

Speed: Set the speed limit of particles ,xyz The same value , When Dampen Not for 0 Is useful when .

Space: Choose whether the speed limit applies to local space or world space . Only if Separate Axes when , This option is only available .

Dampen: When the particle velocity exceeds Speed or Separate Axes When setting the speed limit value , The rate at which the particle velocity decreases .

Drag: Apply linear resistance to particle velocity .

Multiply by Size: When this property is enabled , Larger particles are more affected by the drag coefficient .

Multiply by Velocity: When this property is enabled , Faster particles are more affected by the drag coefficient .

The above attribute values basically support constant values , Curve change , Numerical range , Hyperbolic interval value .

Speed inheritance (Inherit Velocity) Sub module

image.png
The premise of using this module is that 【Simulation Space- Simulation space 】 by World The world .

Use scenarios such as automobile exhaust , Rocket exhaust , Steam engine steam these effects , When cars and rockets accelerate , The tail gas should also be produced with a little acceleration . This attribute is useful for moving objects to emit particles .

Mode: Specifies how the emitter velocity is applied to particles , Two options are available ,Current Indicates that the current velocity of the emitter will be applied to all particles at each frame . for example , If the transmitter decelerates , All particles will also decelerate .Initial Represents the speed at which each particle is born to apply the emitter once . Any change in the velocity of the emitter after a particle is born will not affect the particle .

Multiplier: The proportion of the emitter velocity that the particle should inherit .

You can also use curves to influence the effect over time . for example , Strong suction can be applied to newly created particles , Reduce the suction over time . This may be useful for steam train smoke , Because steam train smoke will drift slowly over time and stop following the train after it is sent out .

other

author : Xiaokong and Xiaozhi Xiaokong
Reprint note - Be sure to indicate the source :https://zhima.blog.csdn.net/
This Taoist friend, please Step back ️, I watch you Extraordinary bearing , There is a king's domineering spirit in his speech , There will be a great achievement in the future !!! There is give the thumbs-up Collection Today I tell you , Have you ordered it , Your success in the future ️, I don't take a penny , If it doesn't work ️, Or come back to me .

reminder Click the card below to get more unexpected resources .
 Mr. Kong Ming

原网站

版权声明
本文为[sesame seeds]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/174/202206230945572937.html