Random Unit Vector in Elliptical Cone in Radians

Random Unit Vector in Elliptical Cone in Radians

Windows
MacOS
Linux

Returns a random vector with length of 1, within the specified cone, with uniform random distribution. The shape of the cone can be modified according to the yaw and pitch angles.

Target is Kismet Math Library

Random Unit Vector in Elliptical Cone in Radians
Cone Dir
X0
Y 0
Z 0
Max Yaw in Radians
0.0
Max Pitch in Radians
0.0
Return Value
X0
Y 0
Z 0

Inputs

Cone Dir
Vector
Max Yaw in Radians
Float

The yaw angle of the cone (from ConeDir to horizontal edge), in radians.

Max Pitch in Radians
Float

The pitch angle of the cone (from ConeDir to vertical edge), in radians.

Outputs

Return Value
Vector
Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback