This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:tutorials:objects:literals_for_objects [2021/08/09 05:25 (4 years ago)] – created sausage | en:tutorials:objects:literals_for_objects [2021/08/18 22:27 (4 years ago)] (current) – Fixed last example iarwain | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Position literals to align with Parent Objects ====== | ====== Position literals to align with Parent Objects ====== | ||
- | Literal Positions add flexibility | + | Using literals for object positioning adds flexibility for placing an object relative to its parent, without having to do manual calculations. |
- | They should be useful | + | This is especially |
- | When a Parent is defined for an object, you can use the same literals for Position as with Pivot to align object inside parent' | + | Furthermore, |
The global form is: | The global form is: | ||
Position = [pivot' | Position = [pivot' | ||
- | |||
Here's a basic setup with one rectangular parent (green) and one rectangular child (red): | Here's a basic setup with one rectangular parent (green) and one rectangular child (red): | ||
Line 128: | Line 127: | ||
Scale = 2 | Scale = 2 | ||
Rotation | Rotation | ||
- | Position | + | Position |
</ | </ | ||
{{ : | {{ : |