Modifying existing particles with particle properties
Is there any way to modify particles based on the properties of the particles themselves? What I'm trying to do is modify a particles x/y movement dependent on its height. I want the particles to move faster if they're higher in the air, based on player input(walking).
This is my attempt: PHP Code:
|
I don't think so. There's no way to read or write the variables of particles; fairly literal fire and forget.
The particles[] array you're accessing is just templates/prototypes/classes which hold the starting variables of the actual particles. You could maybe be dynamic with the modifiers though by repeatedly doing removemodifiers() and add*modifier() but I'm not sure how well that works or if it could get laggy. |
All times are GMT +2. The time now is 07:57 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.