Random Unit Vector#

Generates a random vector with uniform distribution on the unit sphere.

Installation#

To use this node enable omni.graph.nodes_core in the Extension Manager.

Inputs#

Name

Type

Descripton

Default

Exec In (inputs:execIn)

execution

Signal to the graph that this node is ready to be executed.

None

Is noise function (inputs:isNoise)

bool

Turn this node into a noise generator function. For a given seed, it will always output the same number(s).

False

Metadata

hidden = true

Metadata

literalOnly = 1

Seed (inputs:seed)

uint64

The input seed value for the random unit vector generator.

None

Use seed (inputs:useSeed)

bool

Use the custom seed instead of a random one.

False

Outputs#

Name

Type

Descripton

Default

Exec Out (outputs:execOut)

execution

Signal to the graph that execution can continue downstream.

None

Random Unit Vector (outputs:random)

vectorf[3]

The random unit vector that was generated.

None

State#

Name

Type

Descripton

Default

Gen (state:gen)

matrixd[3]

Random number generator internal state. Not an actual matrix, the structure was chosen because it was large enough to hold the internal data required for the computation.

None

Metadata#

Name

Value

Unique ID

omni.graph.nodes.RandomUnitVector

Version

1

Extension

omni.graph.nodes_core

Has State?

True

Implementation Language

C++

Default Memory Type

cpu

Generated Code Exclusions

None

uiName

Random Unit Vector

Categories

math:operator

Generated Class Name

OgnRandomUnitVectorDatabase

Python Module

omni.graph.nodes_core