- Home /
find rigth side/Left side between 2 vectors
Hello! As you will see in the image, I am trying to get the side where the mouse is between 2 vector3 ...
I would like to detect if it is on the right side, or on the left side!
I was looking at vector3.cross .. but I don't understand, and I can't solve it, there is no reference code to understand it ..
could someone give me a help and explain the method?
Thanks a lot
I don't see the image and I'm not quite sure what you mean by "get the side where the mouse is between 2 vector3". Which feature are you trying to implement? Please fix the image.
Just to be clear. You are making a line between two points and you want to figure out whats on the right or left side of that line?
To do that you need to specify another point as you are working in a 3D coordinate space.
Can I assume that its an infinite vertical plane like this and you are just setting its x and z position/ rotation (as long as the rotation doesn't change the vertical axis) for my example?
Either way its this if you dont get back before I have to leave for work.
Your answer
Follow this Question
Related Questions
Cast ray relative to the direction my Object is moving 1 Answer
How to debug drawing plane? 2 Answers
Can a GameObject be serialized? 1 Answer
Object faces -180 degrees away 1 Answer
Vector3.Lerp doesn't work on build 0 Answers