This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:tutorials:frame [2018/06/21 06:02 (6 years ago)] – sausage | en:tutorials:objects:frame [2022/12/06 13:38 (17 months ago)] (current) – iarwain | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Transformations | + | ====== |
===== Summary ===== | ===== Summary ===== | ||
- | See previous | + | See previous basic tutorials for more info about [[object|basic object creation]] and [[..:clocks:clock|clock handling]]. |
All objects' | All objects' | ||
Line 9: | Line 9: | ||
In this tutorial, we have four objects that we link to a common parent ((an empty object, with no visual)) and a fifth one which has no parent.\\ | In this tutorial, we have four objects that we link to a common parent ((an empty object, with no visual)) and a fifth one which has no parent.\\ | ||
- | The first two children are implicitely | + | The first two children are implicitly |
The invisible parent object will follow the mouse cursor. Left shift and left control keys will respectively scale up and down the parent object, where as left and right clicks will apply a rotation to it.\\ | The invisible parent object will follow the mouse cursor. Left shift and left control keys will respectively scale up and down the parent object, where as left and right clicks will apply a rotation to it.\\ | ||
All these transformations will affect its four children. | All these transformations will affect its four children. | ||
Line 17: | Line 17: | ||
===== Details ===== | ===== Details ===== | ||
- | As with the [[main_previous# | + | As with the previous tutorials, we begin by creating a viewport. |
<code c> | <code c> | ||
Line 48: | Line 48: | ||
We then look for the main clock and register our '' | We then look for the main clock and register our '' | ||
- | <code c> | + | <code c> |
orxClock_Register(pstClock, | orxClock_Register(pstClock, | ||
Line 65: | Line 65: | ||
The only thing left to do is to apply scale and rotation according to our inputs.\\ | The only thing left to do is to apply scale and rotation according to our inputs.\\ | ||
- | In our case, we defined the following inputs in [[https://bitbucket.org/orx/orx/src/default/ | + | In our case, we defined the following inputs in [[https://github.com/orx/orx/blob/master/ |
Let's see how we handle them. First, the rotations. | Let's see how we handle them. First, the rotations. | ||
Line 98: | Line 98: | ||
===== Resources ===== | ===== Resources ===== | ||
- | Source code: [[https://bitbucket.org/orx/orx/src/default/ | + | Source code: [[https://github.com/orx/orx/blob/master/ |
- | Config file: [[https://bitbucket.org/orx/orx/src/default/ | + | Config file: [[https://github.com/orx/orx/blob/master/ |