#How to get the `Vector3` Directly infront of a Entity
1 messages · Page 1 of 1 (latest)
Vector.add(entity.location, entity.viewDirection)
fr
view vector is based on rotation
yeah but, it doesnt get the right bector
a player has a local cordinate system x y z the z local axix is known as view vector on minecraft
nah
yes thats right
but this isnt
what nah?
what con sent
how its not right
it doesnt spawn it out right
viewVector is a unit vector means its magnitude is 1
so adding viewVector to location gives u 1 block away from player
idk why it doesnt makes sense to u
🤔
i want 1 block infront of the player
did u tried con's code?
yes
what result u got
it spawns it 1 away on its z
not infront of the entity based on where its facing
show code?