Skip to main content
Version: 3.9.0

Cross

cross

Use Cross to calculate the cross product between two vectors. The cross product is a vector that is perpendicular to the input two vectors. Supported types: Vec3, and Vec4. Cross is in the Math category.

Input

NameData TypeDescription
AVec4The first vector.
BVec4The second vector.

Output

NameData TypeDescription
ResultVec4The result of the cross product.

Example

cross example

This example shows that the pink sphere’s position is always perpendicular to the plane that consists of the other green spheres.

cross node