rodrigop Posted July 23, 2015 Share Posted July 23, 2015 Hi there!, I'm scratching my head about how can i make a common effect in 3d games, what i'm trying to do that one mesh on an event, emits some particles, that first explode (i have that done using simple particles system), but after the explosion instead of disappearing, they should change its target and get attracted/absorbed by another object. I've seen many times in games where you shoot/kill something and it leaves this "bonus lights around" which then are absorbed by the character, but i am not sure how to implement this with BJS, so any ideas from a BJS hero would be wonderful!!! Thank you! Quote Link to comment Share on other sites More sharing options...
iiceman Posted July 23, 2015 Share Posted July 23, 2015 Hmm, maybe something like that? http://www.babylonjs-playground.com/#1K0NSN#1 I used the custom update function (starting at line 67) and added a little change of direction after half the particles lifetime (line 72). Might not be perfect yet, but is that what you are looking for? GameMonetize, rodrigop, DellaFree and 1 other 4 Quote Link to comment Share on other sites More sharing options...
rodrigop Posted July 23, 2015 Author Share Posted July 23, 2015 @iiceman you HERO! thank you for your time, this is a nice road to what i'm looking, I think i can use a Vector3 instead of a mesh as the emitter, and first explode some particles, then move while they turn back to the "absorbing state" move the emitter Vector3 to some other mesh i want to absorb the particles, so it will look like a first explosion with particles, then those particles get absorbed by another mesh.. will try to implement this from your demo very soon (have some work load ATM). Thanks again. Quote Link to comment Share on other sites More sharing options...
rodrigop Posted July 26, 2015 Author Share Posted July 26, 2015 Just got some time to play with this, and this is the end result i was expecting: http://www.babylonjs-playground.com/#1K0NSN#9 iiceman, GameMonetize and Wingnut 3 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.