Tsparticles: rotate svg to match particle path

Created on 21 Jun 2020  路  4Comments  路  Source: matteobruni/tsparticles

Currently, particles don't have the notion of "forward", for example, a circle or star can move in any direction, but airplanes (for example) can't move sideways IRL.

I'd like to be able to rotate an SVG so that the object moves "forward" in random directions

Currently, I've set it to move left-to-right ("right") and set the rotation to be fixed, but this is kinda boring.

Generally, I'm asking for particles to have a sense of direction so I can get my planes to fly criss-cross patterns (also cars, people, etc).

documentation enhancement feature_request good first issue help wanted up-for-grabs

All 4 comments

Issue-Label Bot is automatically applying the label feature_request to this issue, with a confidence of 0.92. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

Hi @jeffgoh, thanks for the suggestion.

I've released now the 1.17.0-alpha.2 version with this feature, can you give me a feedback if everything is working as expected?

This feature is enabled by default in alpha.2 for tests, starting from alpha.3 the feature will be available setting path: true in rotate options

The alpha.3 version is released too

wow - I got busy with other stuff - thanks for the quick turnaround! will test and revert, but I expect that you've done so already.

Brilliant - works perfectly - not that I have any practical use for this, lol - https://www.lightspeed.com.sg/test/tsparticles/demo/

Was this page helpful?
0 / 5 - 0 ratings

Related issues

matteobruni picture matteobruni  路  6Comments

nikse picture nikse  路  4Comments

Mayron picture Mayron  路  3Comments

paul300497 picture paul300497  路  5Comments

lectair picture lectair  路  6Comments