Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trail renderer snaps to higher width when pressing shift #9

Open
lgarczyn opened this issue Nov 8, 2022 · 0 comments
Open

Trail renderer snaps to higher width when pressing shift #9

lgarczyn opened this issue Nov 8, 2022 · 0 comments

Comments

@lgarczyn
Copy link
Owner

lgarczyn commented Nov 8, 2022

solution 1:

get widthVsTime
store it
whenever width changes
add the width change to a list with timestamps
every update, recalculate a widthVsTime, accounting for bad stuff
for every time change, add two animation node with the interpolated time and correct tangents
  then multiply each node depending on the multiplier history

solution 2:

have a ring buffer being pushed a width each frame
  how do I sample it?
create a curve from it and samples of original curve
aliasing risk

solution 3:

each node has a widthMultiplier data as well as an age, zero allocation
https://assetstore.unity.com/packages/vfx/particles/smoothtrails-141291#reviews

node already have that data surely?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant