java - Android LibGDX Particle System is fixed on screen -
i have 3d scene runs on libgdx(android). want use particle system. when create 1 using tutorials/examples found online (e.g. particle system libgdx) particle system works fine. except 1 thing: fixed on screen.
when move camera around particle system stays on same place on screen (like fixed hud element or so). maybe it's because of sprite-nature of particleeffect
.
the other issue related particleeffect.setposition()
method takes values not in world coordinates in screen pixels. correct? can calculate new on-screen coordinates in pixels , update particleeffect
position every frame. seems hack me.
is there more "right" way make particle system behave other objects in 3d scene , not fixed on screen?
the particle system working in 2d system. it's not 3d particle system thats why wont world. that's why it's inside of g2d
package (graphics 2d). thats reason why take 2d cords , not 3d cords.
also feature list says it's inside of 2d highlevel api.
Comments
Post a Comment