Git Product home page Git Product logo

particle-driver's Introduction

Particle Driver

Generic badge Generic badge Generic badge Generic badge

Generic badge Generic badge

A legacy method for animating on particle death that uses the Layer Weight Tool

This package is depreated! If you want to drive a parameter on world or player collision, get the new package here


How it works

  • The Particle Driver Stay Active.controller continuously enables Particle System to re-enable the particle system immediately after it's been disabled.
  • The Particle System object is disabled on collision via Stop Action. When re-enabled, the Particle Driver Weight.controller will reset.
  • Weight.controller uses Animator Layer Control to change the weight of the Particle Driver layer based on its weight.
  • The ParticleDeath parameter value is multiplied by the weight and can be used as a transition condition.

Install guide

Particle.Driver-12.mp4
  • Merge the Animator Controller Particle Driver FX to your own FX Controller, using the Avatars 3.0 Manager tool.
  • Drag & drop the Particle Driver prefab into the base of your Hierarchy.
  • Right click and unpack the prefab, then drag & drop it onto your avatar.
  • Adjust the transforms of Particle System and Collider as needed.
  • In the Resources/Animations/Particle Driver Weight controller, in the Max Weight and Min Weight animation state, change the Index to the index of the Particle Driver Layer on your FX Controller
    • The top layer is index 0, the second layer is index 1, etc.

How to use

  • When the Collider is colliding with the Particle, the ParticleDriver/IsColliding parameter will be set to True, otherwise, it will be set to False.

Performance stats

Colliders:          1
Particle Systems:   1
FX Animator Layers: 1
Sub Animators:      2

Hierarchy layout

Particle Driver
|-Particle System
|-Collider

Contributors

License

Particle Driver is available as-is under MIT. For more information see LICENSE.

โ€‹

particle-driver's People

Contributors

hfcred avatar jellejurre avatar oofdesu avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.