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

Would it be possible to have an option on groups/emitters to interpolate between positions? #127

Open
code-matt opened this issue Mar 28, 2018 · 3 comments

Comments

@code-matt
Copy link

code-matt commented Mar 28, 2018

https://gamedevelopment.tutsplus.com/tutorials/creating-smooth-particle-emission-with-sub-frame-interpolation--gamedev-10914

It's useful(required) for smoke trails on rockets and other moderately fast effects. I took a stab at adding it myself and failed miserably. Is this possible to add without adding too much of a performance hit?

I mean the world position, after 'attaching' the emitter to a quickly moving object by updating its position to match the object each frame. I imagine it would be a boolean on the emitter or group.

@code-matt code-matt changed the title Would it be possible to have an option on groups/emitters to interpolate between positions ? Would it be possible to have an option on groups/emitters to interpolate between positions? Mar 28, 2018
@rpsirois
Copy link

Hey man, does this help? #129

@code-matt
Copy link
Author

code-matt commented Jul 22, 2018

I think it could be better option than is available now for high speed straight kind of effects, like some rocket trails.

I gave it a whirl, pretty cool except I think one would need to be able to do:

emitter.start.value = emitter.start.value.copy(newPosition)

The same way we are able to update an emitters position. This way the start of the line could be kept behind the traveling object. Right now it stays in place as the object zooms away and particles get thinner on the line as it gets longer.

I guess as it is now, could be made to be some kind of laser cannon :D

@rpsirois
Copy link

rpsirois commented Jul 22, 2018 via email

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

2 participants