PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

VelocityInheritance

ParticleEmitter

float

The VelocityInheritance property determines how much of the parent part’s BasePart/Velocity is inherited by particles when they are emitted. A value of 0 means that no velocity is inherited, and a value of 1 means the particle will have the exact same speed as the parent BasePart.

Below is an animation of a Part moving back and forth. As it changes direction, the VelocityInheritance will toggle between 0 and 1. Note that when it is 1, the particles move with the part.
A part moving back and forth with VelocityInheritance toggling from 0 to 1

When used in conjunction with ParticleEmitter/Drag, a particle emitter can make appear to be “shedding” particles from a moving part.


Code Samples


Creating a Particle Emitter from Scratch

This rather lengthy code sample shows how every property of a ParticleEmitter can be set, including DataType/NumberRange, DataType/NumberSequence and DataType/ColorSequence properties. Below is how the ParticleEmitter should after every property is set. Try playing around with the different properties to customize how the effect looks!

The final product