# How to: Change orientation of Model/Navigation Cube

**URL:** <https://forum.techsoft3d.com/t/how-to-change-orientation-of-model-navigation-cube/1405>\
**Category:** HOOPS Visualize Desktop\
**Tags:** code, learn, knowledge-base, how-to, viewing\
**Created:** [October 15, 2021, 4:00am UTC](https://forum.techsoft3d.com/t/how-to-change-orientation-of-model-navigation-cube/1405 "2021-10-15T04:00:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabriel.peragine](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.techsoft3d.com/gabriel.peragine/32/1535_2.png) [@gabriel.peragine](https://forum.techsoft3d.com/u/gabriel.peragine)\
**Post date:** [October 15, 2021, 4:00am UTC](https://forum.techsoft3d.com/t/how-to-change-orientation-of-model-navigation-cube/1405/1 "2021-10-15T04:00:00Z")

</div>

You can customize the orientation by specifying a front and an up vector for the model using HPS::Model::SetOrientation. The navigation cube orients along the model orientation.  
[https://docs.techsoft3d.com/hps/latest/api\_ref/cs/class\_h\_p\_s\_1\_1\_model.html#function-HPS.Model.SetOrientation](https://docs.techsoft3d.com/hps/latest/api_ref/cs/class_h_p_s_1_1_model.html#function-HPS.Model.SetOrientation)

When just opening the model in sandbox:

 ![image-20221114-065828](https://us1.discourse-cdn.com/flex020/uploads/techsoft3d/original/1X/5a0388736600750d8f814c8938c72a694245c8cd.png)

When setting the orientation as below:

```auto
HPS::Vector up(0, 0, 1);
HPS::Vector front(1, 0, 0);
GetCanvas().GetFrontView().GetAttachedModel().SetOrientation(up, front);

```

 ![image-20221114-070043](https://us1.discourse-cdn.com/flex020/uploads/techsoft3d/original/1X/296574106b0fceb446b282473605130ee2c912e3.png)
