Constraint System Manual

Transform Mapping 

TransformMapping constraint extracts vector from target's pos/euler/scale property, lerp it to generate a new vector, and applies the result to owner's some Transform property .

Check the preview image below:


Here we explain each options in the TransformMapping editor;

This constraint is more complex than the previous ones, well, you can even tell that form the length;

This constraint could extract a source vector from target's position/euler/scale property, then mapping the source vector to destination vector with some calculation, finally, put the destination vector into the owner's specified property (could be different from source vector's source) 



This section decides how to map vector from target to owner.

"Src data type" decides which property of target transform is used, options include: position / euler / scale;

"Dst data type" decides which property of owner transform is set to, options include: position / euler / scale;

"Source to Destination Mapping" gives a finer granularity control of vector mapping, you could control which component of source vector to be mapped to which component of destination vector. For each component of destination vector, we could select "X/Y/Z/None" to indicate which component from source vector is used (None means unchanged) 

"Extrapolate" decides whether the value mapping is continued or clamped outside the given range;

So, let's take the image above as an example.

it means to mapping target.position to owner.localScale; 

  • target.position.y => owner.localScale.x;
  • target.position.x => owner.localScale.y;
  • target.position.y => owner.localScale.z;