Started by
kamensh4ik
on
Topic category: Help with Minecraft modding (Java Edition)
Hello, is there any way i can het position to the right of the player (at edge of FOV kinda) by using "x/y/z offset of look vector". So I was trying to make projectile hitscan weapon (its working, if anybody needs I'll drop screenshot), and the particles spawn in the middle of player's view, I and tried to shift them to the right (relative to the player, ofc), but anything seems to work
try to start to spawn the particule at :
- X + Z look offset
- Y
- Z + X look offset
If you look straight forward, Look X should be at 1 and Look Z at 0 so the particle should spawn at Z+1 of you (so the right) and it should adapt when rotating
(i'm writing this from blur memory so might not be 100% exactr, some tweak might be needed)
i did some quick test and it is actually
- X - Z look offset
- Y
- Z + X look offset
The only issue is that when the player look down, the X and Z offset go both to 0... Making that the particules renders at the position of the player