Skip to content

VectorPitch

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

VectorPitch

VectorPitch: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 pitch angle in degrees.

Description

Finds the pitch angle that an entity would need to point along a direction. 0, 0, 1 gives 0, 0, -1, 1 gives 45 (looking down) and 0, 1, 1 gives -45 (looking up). Together with VectorYaw it turns a movement or a difference of two positions into a rotation.

Related Commands

DeltaPitch, TFormPoint, TFormVector, VectorYaw

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally