02-07-2021, 12:56 PM
(This post was last modified: 02-07-2021, 12:57 PM by josemendez.)
(02-07-2021, 12:50 PM)aseem.zhakaas Wrote: I have a game where i want blood to splash and pour from the part of the body where the bullet hits. Is it possible to give the Emitter a position where it should spawn the fluid particle?
Yes, you can write your own EmitterShape and provide your own spawn point(s). Just extend the ObiEmitterShape class and implement its GenerateDistribution() method to provide your own distribution points. This lets you have multiple points at once. Note each point is comprised of both a position and a direction.
Another alternative is simply moving the emitter to wherever the bullet hits.