Hiya!
I'm using the Vector Subtract operator to get the offset between where I'm standing and where I'm looking, and it's always returning a zero vector. I also ran a separate test where I extracted the components, and X and Y both returned zero but Z seems to be working as expected.
I was wondering if anyone had insight into why it's behaving like this. I assume I'm just missing something stupid, but I can't figure out what it is.
Thanks!
Also, I'm running with Psi 2.0.0 on Minecraft Forge 1.19.2. Here's spell that's causing me trouble and the debug output. 0 is my position, 1 is my look raycast, and 2 is the subtraction result.
https://i.postimg.cc/VvQm1pm0/subtract-zero.png
https://i.postimg.cc/Jz2wMvQ7/subtract-zero-output.png
{modsRequired:[{modName:"psi",modVersion:"2.0.0"}],spellList:[{data:{key:"psi:connector",params:{_target:2}},x:1,y:3},{data:{key:"psi:selector_caster"},x:1,y:4},{data:{key:"psi:operator_entity_look",params:{_target:1}},x:1,y:5},{data:{key:"psi:trick_debug",params:{_number:4,_target:2}},x:2,y:2},{data:{key:"psi:operator_entity_position",params:{_target:3}},x:2,y:3},{data:{key:"psi:connector",params:{_target:1}},x:2,y:4},{data:{key:"psi:operator_vector_raycast",params:{_max:0,_position:1,_ray:3}},x:2,y:5},{data:{key:"psi:trick_debug",params:{_number:4,_target:1}},x:2,y:6},{data:{constantValue:"0",key:"psi:constant_number"},x:3,y:2},{data:{key:"psi:connector",params:{_target:3}},x:3,y:3},{data:{key:"psi:operator_vector_piecewise_maximum",params:{_vector1:1,_vector2:2}},x:3,y:4},{data:{key:"psi:connector",params:{_target:3}},x:3,y:5},{data:{constantValue:"1",key:"psi:constant_number"},x:3,y:6},{data:{key:"psi:trick_debug",params:{_number:4,_target:2}},x:4,y:2},{data:{key:"psi:cross_connector",params:{_from1:3,_from2:2,_to1:4,_to2:1}},x:4,y:3},{data:{key:"psi:operator_vector_subtract",params:{_vector1:3,_vector2:4,_vector3:0}},x:4,y:4},{data:{key:"psi:connector",params:{_target:3}},x:4,y:5},{data:{constantValue:"2",key:"psi:constant_number"},x:5,y:2},{data:{key:"psi:connector",params:{_target:3}},x:5,y:3},{data:{key:"psi:operator_vector_piecewise_minimum",params:{_vector1:1,_vector2:2}},x:5,y:4},{data:{key:"psi:connector",params:{_target:3}},x:5,y:5},{data:{key:"psi:operator_vector_construct",params:{_x:0,_y:2,_z:0}},x:6,y:3},{data:{key:"psi:operator_vector_extract_y",params:{_target:3}},x:6,y:4}],spellName:"Growth",uuidLeast:-5997869989445473423L,uuidMost:-891319522129656375L,validSpell:1b}