Skip to content

TFormVector

Claude edited this page Oct 27, 2026 · 5 revisions
Blitz3D

TFormVector

TFormVector x:Float32, y:Float32, z:Float32, source_entity:Int32, dest_entity:Int32
Parameter Type Default Description
x Float32 required X of the vector in the source space.
y Float32 required Y of the vector in the source space.
z Float32 required Z of the vector in the source space.
source_entity Int32 required Entity whose space the vector is in, or 0 for the world.
dest_entity Int32 required Entity whose space the result should be in, or 0 for the world.

Description

Converts a direction from one space to another. Unlike TFormPoint the position of the entities is ignored: only their rotation and scale are used, so a vector of length 1 turns into a longer one when the source entity is scaled. Read the result with TFormedX, TFormedY and TFormedZ.

It is the right tool to find which way an entity moves when you push it forward: convert 0, 0, 1 from the entity to the world.

Related Commands

TFormedX, TFormedY, TFormedZ, TFormNormal, TFormPoint, VectorPitch, VectorYaw

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

More

Clone this wiki locally