C#

Asked • 07/19/19

Get random vector3 on plane?

There are the planet and a few satellites in 3d space. I need to calculate axis of rotation for every satellite. They should rotate around planet center. I calculated the vector from satellite to the center of the planet. vec1 = planetCenter - sputnikCenter; With vec1 and planetCenter I can calculate the equation of plane, that perpendicular to vec1. equation like that: A.x + B.y + C.z + D = 0 Now, I should get random vector on this plane. This vector will be axis of rotation. But how can I get this random vector?

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.