Skip to content

Commit

Permalink
Add TransformComponent doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexis Huvier committed Mar 29, 2021
1 parent 138d003 commit 49b1e9f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
24 changes: 24 additions & 0 deletions engine/components/transform_component.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
TransformComponent
==================

This component add position, rotation and scale to game object.

Editor
------

In the editor, you can change position, rotation or scale with differents spins.

Script
------

Variables
^^^^^^^^^

- rotation : Rotation of object in degrees (integer)
- position : Position X and Y of object (list of two integers)
- scale : Scale X and Y of object (list of two integers)

Functions
^^^^^^^^^

No public function in this component.
7 changes: 5 additions & 2 deletions index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ Sommaire :
.. toctree::
:maxdepth: 1
:caption: Informations
:name: sec-general

Informations/introduction
Informations/telechargement-et-installation
Expand All @@ -25,8 +24,12 @@ Sommaire :
.. toctree::
:maxdepth: 1
:caption: Engine
:name: sec-Engine

engine/project_window.rst
engine/editor.rst

.. toctree::
:maxdepth: 1
:caption: Compoenents

engine/components/transform_component.rst

0 comments on commit 49b1e9f

Please sign in to comment.