#Hand position vector

1 messages · Page 1 of 1 (latest)

sleek plank
#

Is there anyway to check if a player has their hand in front of their face (as the picture shows) and make it trigger an exec

sleek plank
bronze locust
# sleek plank Is there anyway to check if a player has their hand in front of their face (as t...

Less Than Or Equal(Acos(Vector3 Dot(Get Local Player Camera Forward, Vector3 Normalize(Player Hand Position - Local Player Camera Position))), 20)

This system will output “True” if the angle between the direction of the player’s hand position (use either the “Local Player Get Right Hand Position” chip or the “Local Player Get Left Hand Position” chip) from the camera position and the player’s camera forward direction is no greater than 20 degrees.

sleek plank
sterile pollen
#

And the name was verbatim

young sequoia
# sleek plank i dont really understand how to wire everything

Wire the top input of less than or equal to the output of acos wire the acos Input to vector dot output
Wire the top input of vector dot to get local player camera forward and the bottom vector dot input to vector3 normalize output
Wire the vector normalize input to subtract output wire top Subtract input to player hand position and bottom subtract input to local camera position
Configure the bottom Greater than or equal and make it 20

normal hedge
#

youre not him thx sooo much