Started by
Tatan
on
Topic category: Advanced modding
I can't make sure that my star is correctly aligned with the character's view. I think it comes from the y axis. But I can't find the problem. I followed a tutorial to do it, it doesn't show everything.https://www.youtube.com/watch?v=X--wmU2wS4Y
Edited by Tatan on Sat, 01/13/2024 - 17:13
I have no idea what math you're using for the star shape, but if you copied it from a tutorial, it should probably work. If you need to get it alligned with the player's view, you'll probably need to offset the starting location of the particles using the 'x/y/z look angle vectors' of the player. If you change the starting position from x/y/z to (x + x look angle vector), (y + y look angle vector), (z + z look angle vector), then it will start the particles one block in front of wherever the player is looking. (You can multiply this by whole or decimal numbers to increase or decrease the distance from the player.)
thank you I managed to resolve all the problems thanks to your explanation