Particle System not working properly when using world space

Link to code: hatebin

Link to gif that shows problem: Imgur: The magic of the Internet


I want my ship to make a trail of water particles whenever it moves but the problem is that it creates a trail of particles that extend behind the direction that my ship is moving for some reason rather than having the trail start at the position of the ship where it started moving.


This problem happens when I try to use world space and I can only seem to use world space because I’m trying to leave a trail. I wrote a script for the Particle System so that whenever the player reaches a certain velocity, it’s prewarm is set to true and it can immediately start playing the particles.


I have no idea what’s wrong with what I’m doing! Please help!

@solocs
I think you should set particleSystem.enableEmission to true also changing culling mode to “Always Simulate” can also fix this problem.

I hope this would help ;=D