- Home /
Plane geometry
Hi! I am trying to make some IA for my game and I need it to aim to the human players. The problem comes when I try to get the vector that stores the aim direction. So far I use a Plane and Raycast so that the plane is centered and oriented by the "enemy" transform and use Raycast to project the player position in the plane. What I need is a way to get a reference system (x and y axis) centered on the "enemy" transform and find the vector that connects the "enemy" transform and the player projection INSIDE the plane (it should be a 2d vector like (x0, y0))...
Here is an image to show the problem:
http://imageshack.us/photo/my-images/4/drawinga.png/
ty for your time.
Your answer
Follow this Question
Related Questions
Get gameobject limits 1 Answer
Drag rigidbody with camera at angle? 0 Answers
Lerp & jumping with sin/cos 1 Answer
Particle system absolute speed on a plane? 1 Answer
Need help getting "Directions"... 0 Answers