• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] HELP!
#4
If i understood what he wants is:

lets say P1 and P2 are they points so



raycast = lenght_you_want * P2-P1/VectorSize(P2-P1)



Explain:

P2-P1 will give you the vector from p1 pointing to p2. Dividing it for his norm to make it unit (see maslag coment). And then multiply for the lenght you want to stretch it :)
  Reply


Messages In This Thread
HELP! - by mouiz - 2019-05-25, 08:14 PM
RE: HELP! - by Y_Less - 2019-05-25, 11:24 PM
RE: HELP! - by maslag - 2019-05-25, 11:55 PM
RE: HELP! - by Stanislav - 2019-05-26, 12:27 AM
RE: HELP! - by mouiz - 2019-05-26, 12:35 PM

Forum Jump: