For the life of me I cannot figure this out.
I’m trying to get a random vector in a cone. I can call the function with just a basic forward vector to test. (1,0,0)
I also use the same origin and vector to draw a debug cone.
The debug cone draws out as I would expect. The lines from the random vector in a cone are all going downward.
What am I missing here???
I’m not sure why the pictures aren’t showing, but you can follow the link to them and they are there
There’s no link. Can you post it again?
I think I figured it out. I believe the draw random unit vector is working in a local space with an origin of 0,0,0 so one I added the vector that it gives me to my actual “start” vector then it appears to be working now.
Yes, random vector is only work in a one unit space around the origin, it’s up to you to scale and position it.