Git Product home page Git Product logo

Comments (3)

kirelisaurimas avatar kirelisaurimas commented on July 23, 2024

I think we should add https://api.playcanvas.com/classes/Engine.ParticleSystemComponent.html#particleNormal
to that as well. you you set orientation to world there are something wrong with it. Please correct me if I am wrong, but this is not correct behavior. to reproduce it just rotate parent 180 degrees, and try play with world orientation particle normal parameters:

  1. setting parent to 180, then particle normal x = -1 and z = -1. You will notice that increasing particles normal x to lower value than -1 (for example -16) will actually effect the orientation.
  2. particle normal (1; 0; 0) and (1 ; 0 ; 0,0001) behavior is completely different when parent is rotated 180 degreess.
  3. rotate object -90 degrees and on particles try find values that would make particles go correct direction you will find that is impossible regardless of values. this assuming that particles looks like fish or arrows, so you could see particles easily.

It might be connected with orientation problems. or might be new ones.

from engine.

mvaligursky avatar mvaligursky commented on July 23, 2024

Velocity is just a single vector. A quad needs to be aligned two two vectors, otherwise it could randomly rotate around the velocity. I think the other vector is related to the camera, so that the quad is visible by the camera. What else are you suggesting here @LeXXik ?

from engine.

LeXXik avatar LeXXik commented on July 23, 2024

Hmm, to be honest I haven't studied the particle system implementation yet. There isn't anything else in addition to it. Just that the particles should maintain their orientation while in flight regardless of camera's angle. Can the particles not use camera vectors and use world up/forward instead when they are in the world space?

from engine.

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.