History: Object manipulation with Gizmo
Source of version: 3
Copy to clipboard
{INCLUDE(page="ogrelex ext tpl")/}
---
content here
{WIKIPEDIA()/}
!Object manipulation with Gizmo
!Overview
This snipped shows how to create an editor manager which holds a Gizmo for object manipulation.
!Features
The Gizmo can be changed to the following modes:
#Translate-Gizmo
#Rotate-Gizmo
#Scale-Gizmo
Its possible to translate objects along a given direction depending which gizmo arrow has been pressed. The rotation is done via rings. The use can grab a ring and rotate. The selected object will be rotated and a progress-bar will be shown within the ring. Its also possible to translate/rotate Objects in a grid.
The scale of objects does work but the unite-scale not so far.
In the code snippets there are some notes, in what way the editor manager can be extended. The selection code has been uncommented, because it was part of my NOWA-Engine and not compatible with ogre.
Some snippets within the code are orientated at other snippets from the Ogre-site and Ogitor.
{YOUTUBE(movie="SpM4C50_v0g",width="854",height="480")}{YOUTUBE}