17-02-2020, 01:35 PM
Could you actually provide some code snippets on how to accomplish what you're describing? I'd appreciate it.
For instance:
For instance:
Quote:- Calculate a spring force that strives to keep each particle at y = 0. This is what will cause particles to fall back to their position when a touch ceases.
- When there's a touch present, calculate a force opposite to the previous one, that strives to keep the particle at y = some positive value.