#but then why are some particle bits
1 messages · Page 1 of 1 (latest)
I'm a bit lost on what's a particle and what's a "bit" at a given moment
If you can show a video of doing what I suggest that could help a lot
particle bit
is like one little part
of particle
and i associate just particle with particle as an object
have this btw
Paused Play mode, Scene and Game windows side by side, selecting the problematic particle and focusing on the Particle System itself
You need to select it from the Hierarchy or from Scene window
If you can't see particles at all in Scene view, I'd select the Particle System from the hierarchy and double click it (or hit F when mouse-overing the Scene window) to focus Scene view to them
already
i told u
and the problem is
theyre in the RIGHT place
like the object that spawns the particle
particle gameobject
but the things it spawns arent in place
some atleast
some even spawn ABOVE
where theyre supposed to spawn
Trying to focus on the particles after selecting them from the Hierarchy would be important at this point
They should not be invisible in the Scene view if you do that
This may give you a clue about where it's being instantiated
And very likely indicate that whatever code is instantiating it is doing so in the wrong position
Do they?
or where they should start
well look at the circled particle
it spawnd WAY above
where it should have
and in the video
some spawn way under
i dont know why
and when i double click particles
in the hierarchy
they take me exatly to the particle spot marked with red gizmo
its very confusing sorry
Specifically the particles that appear in the wrong place?
My hypothesis is that the origin of the Particle System should be appearing in the wrong place at that moment
Indicating that your code is instantiating them in the wrong position
i dont know why
Instantiate(dirtParticle1, particleSpot.position, Quaternion.identity);
particleSpot.position
and particle spot is the red thing
i mean
they get the y axis wrong
only
they should spawn anywhere in x i guess
idk its a very simple code
to spawn smth in one place
and when i click the particles and click replay they do it normally
wait a sec
if it helps i can record
what i mean
oh
sorry about that too
or actually nvm it doesnt let you replay the particle when play mode is on
I checked my code and it seems to work with the falling projectiles you see in the video
Also note that to see the origin of objects like the Particle System accurately, this button must be in "pivot" mode
i used the same exact method with the particles except that they do not spawn in random x axis
i do have it already
Good
A "Particle System" is the component together with the Transform that determines its position, the PS has individual "particles"
The Particle System's "Shape" module determines where the particles appear around the PS transform origin
yes
and the shape does it right
in scene viewer
but it starts messing the y axis of where the particles spawn when the boss spawns them
If Shape is not placing them in some weird spot, the particle systems are most likely being instantiated in the wrong place
I would triple check (and Debug.Log) that particleSpot.position really is what you think it is
i tried to
even re adjusted the particle position
object
but to no avail, maybe there is another way to spawn a particle on a specific place using a script?
i used a system i usually always use
I recommend not to try to fix a malfunctioning simple system with a different more complex system
youre right
this is the first time this system failed me, and this game spawns a LOT of things in many different places, though i rarely did it with particles
According to my experience, the Shape, the PS origin at runtime instantiation should be wrong
They can't both be right
Unless there's a separate yet undisclosed system participating in their positioning
I guess that is why i suspect its the particles fault, not the code
Ill check about the seperate system
i dont think the particleposition is attached to anything
i tried with the shape
but everything seems alright look
they all spawn in the same y axis
when it comes to origin i guess i dont know what specifically to check with it, script that spawns it works fine, object it should be spawned at is also not changing its location and it leads me to it in the hierarchy when i look for the particle systen origin
the script in the first video spawns 3-4 of these particle systems
I'm not spotting an issue, but then again you haven't shown me the things I wanted to see
Which are
- The origin of a particle system of a particle that has spawned in the wrong place at runtime
- the Debug.Logged position of the PS during instantiation
i told you 1. leads me to the particlePosition or whatever the red gizmo marked gameobject is called
ill record it
thank you for your time by the way
i usually checked
and every time i search for where the particle is spawned it gives me red things position, which is correct
Can you show the shape module expanded and also the renderer module?