- Home /
Random position between 4 vectors
Hello, how to find random position between 4 vector3? Something like on picture. 
So the random position would be somewhere inside the shape?
Yes and points could have different positions but always will be 4 points. Or if it would be easier, I can divide the shape into two triangles, then how I could find random position on triangle
Answer by sh_code · Jan 13, 2019 at 10:21 PM
first, do a random position between 2 vectors that form a side/edge (using Vector.Lerp with random in the t value), then the same thing between 2 vectors that form the opposite side/edge (again, using Vector.Lerp of those two, with random in the t value), and lastly, do random between those two vectors you calculated, in the same way. You're welcome.
Your answer
Follow this Question
Related Questions
spawn muzzle flash with random rotation? 2 Answers
Random position inside multiple areas 2 Answers
Vector3 not receiving coordinates 1 Answer
Spawn position is different 0 Answers