Coder Social home page Coder Social logo

Comments (4)

Alchemist0823 avatar Alchemist0823 commented on August 31, 2024

you can shoot a trail particle towards (0,0,1) then rotate the emitter to the direction you want.

from three.quarks.

johnnyrainbow avatar johnnyrainbow commented on August 31, 2024

you can shoot a trail particle towards (0,0,1) then rotate the emitter to the direction you want.

What about specifically for the use case of creating projectiles/bullet particles? These need to be emitted and only travel between a distance (an emitted particle should be destroyed once it reaches the target/hit position) so that they don't overshoot their target. At the moment I don't believe that quarks systems can support this, but its quite an important use case. Thoughts?

from three.quarks.

Alchemist0823 avatar Alchemist0823 commented on August 31, 2024

If you can provide an image, it's much easier to understand. In the space shooter staroyale.io, every single trail effect is powered by quarks. Currently you can attach the emitter to the bullet and set the worldspace property to true. U can use emit over distance option to set the update frequency.

from three.quarks.

johnnyrainbow avatar johnnyrainbow commented on August 31, 2024

Here's an diagram example.

https://gyazo.com/2aa373b69b17f81ea1453a4f9e600f87

The gun has an emitter that can emit bullet particles. Whenever I shoot, I will want to call something like bulletEmitter.emit(distanceToTarget). It will then emit a particle that dies after it travels that distance

from three.quarks.

Related Issues (20)

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.