[045] Understanding the translate() Command in CityEngine CGA
Precisely control asset positioning by understanding absolute and relative movement across different coordinate systems. This tutorial explains the 4-parameter translate() command in CGA. We explore how "abs" and "rel" modes interact with World, Pivot, and Scope coordinate systems, accompanied by video demonstrations to visualize how 3D assets shift within the procedural environment. Syntax and Parameters of translate() Let's look at the reference. img 1 : CGA Translate Documentation Reference It uses a total of four parameters. mode determines whether to use absolute (abs) or relative (rel) coordinates. coordSystem determines the coordinate system (one of scope, object, world, or pivot coordinate systems). x, y, z define movement along the selected coordinate system. In rel mode, they represent movement distances. In abs mode, they represent positions relative to the ...