# Heading Pitch Roll in for 3DTile imorted with Cesium Ion REST API

**URL:** <https://community.cesium.com/t/heading-pitch-roll-in-for-3dtile-imorted-with-cesium-ion-rest-api/23005>\
**Category:** CesiumJS\
**Created:** [March 22, 2023, 11:10am UTC](https://community.cesium.com/t/heading-pitch-roll-in-for-3dtile-imorted-with-cesium-ion-rest-api/23005 "2023-03-22T11:10:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gerritsen\_Theo](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/gerritsen_theo/32/12849_2.png) [@Gerritsen\_Theo](https://community.cesium.com/u/Gerritsen_Theo)\
**Post date:** [March 22, 2023, 11:10am UTC](https://community.cesium.com/t/heading-pitch-roll-in-for-3dtile-imorted-with-cesium-ion-rest-api/23005/1 "2023-03-22T11:10:46Z")

</div>

I’m currently using Cesium Ion REST API to upload my glTF to Cesium Ion with a custom origin (the one defined in blender). The problem was that Cesium Ion automatically defines a new origin for the asset based on the centroid of its boundingbox [issue](https://community.cesium.com/t/how-to-correctly-position-3d-models-when-tiling-with-cesium-ion/10498/1). Using Cesium Ion REST API I can define a custom origin that corresponds to the one I defined on blender. The problem now, is that when I want to rotate my asset using its modelMatrix, the center of the model is now the center of the earth (see this [issue](https://community.cesium.com/t/is-there-is-a-way-to-rotate-the-the-3d-tile-model/5774/3). So when I apply a 3 degree rotation, in stead of applying these 3 degrees to my asset relative to my assigned origin, it rotates the asset 3 degrees from the center of the earth (which is huge). Does anyone now how I could use the defined origin and not the center of the earth ? Or is there maybe some way to define a Heading Pitch Roll in the REST API (like the location) since Cesium Ion allows you to modify the HPR ?
