- Home /
Question by
ChickenVegetable · Dec 28, 2020 at 07:40 PM ·
vector3 operations
finding "down" on 2d plane
Hi
The 2D plane exists in 3D space and can rotate in any direction about the origin (from gyro data).
How can I find the vector shown in blue that always points closest to world space "down" along the surface of the place?
IE if the plane was perfectly flat the vector would be [0,0,0] and if it was rotated 90 degrees like a wall, the vector would be [0,-1,0]
question.png
(72.2 kB)
Comment
Answer by ChickenVegetable · Dec 28, 2020 at 08:49 PM
Turns out it was the ProjectOnPlane method I was after!