Skip to content

VectorYaw

Narta Xaymar Dirks edited this page Oct 28, 2026 · 5 revisions
Blitz3D

VectorYaw

VectorYaw:Float32 x:Float32, y:Float32, z:Float32
Parameter Mode Type Default Description
x In Float32 required X of the direction.
y In Float32 required Y of the direction.
z In Float32 required Z of the direction.

Returns: The yaw angle in degrees.

Description

Finds the yaw angle that an entity would need to point along a direction. The direction 0, 0, 1 gives 0, and the angle grows to the left, so 1, 0, 0 gives -90 and -1, 0, 0 gives 90. The result is the same as EntityYaw of an entity pointing that way. The height of the vector does not matter.

Related Commands

DeltaYaw, TFormVector, VectorPitch

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally