Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-90793

Support alignMode with particles

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • P2: Important
    • 6.1
    • 6.1
    • Quick: 3D
    • None
    • 2
    • 6e2951da07deb37d91ab24aea1e9419ecfb1cbf4 62fb51bd08a8307891c94141c490ed4db396833d 73a359c06a4ed68753c0bedce8852bcbcaaa842e
    • Qt Quick 3D - 2021 - Weeks 5/6, Qt Quick 3D - 2021 - Weeks 7/8

    Description

      Particle (or SpriteParticle) could have "alignMode" property with enum values:

      • AlighTowardsZ: (Default) This makes particles textures base direction towards Z, where camera usually is. Use Emitter particleRotation* to change direction.
      • AlighTowardsCamera: This makes particles textures base direction towards camera always, even when camera moves & rotates.
      • AlignTowardsStartVelocity: This makes particles textures base direction towards startVelocity. (Not changing to current direction, unless we implement a way to store previous position in our stateless system). Useful for e.g. line / lightning type of longer particles rotated properly.

      Emitter particleRotation* properties are always added to these base directions. So if user want's particles to be in +/- 20-degree x angle towards camera, use AlighTowardsCamera and particleRotationVariation: Qt.vector3D(20,0,0).

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tuliniemi Jere Tuliniemi
            kagro Kaj Grönholm
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes