Select to view content in your preferred language

Move Game Objects with metric values

556
2
08-22-2022 07:30 AM
LuisKaiser
Emerging Contributor

Hello all,

I have placed game objects in my NYC world using the Arcgis Location Component. Now I want to move these objects when I change the x and y coordinate. 

But I would like to add metric values to my coordinates.

I think that this problem is not so difficult.

But do you know the best way for me to do this?

0 Kudos
2 Replies
Matt_Nelson
Esri Alum

Hi Luis,

Im not sure this is what you mean, but I am guessing by metric you want to position an object with meters instead of using degrees. You have a couple of options 1. Is to just interface with the HPTransform component. When you add a location component we automatically add a HPTransform as well which represents an objects location in meters. 2. You can use a spatial reference like 3857 on the location component which uses meters. This is a projected coordinate system so their would be distortion near the poles when using this.

0 Kudos
genarus
Emerging Contributor

Hi! Could you probably help me with my question: https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/moving-gameobjects-without-arcgicl...
Unfortunately I can not find a way to "move" my objects based on metric values, since it looks like all methods require a ArcGisPoint which is expensive to create and can not be modified or pooled. How would you set the position of an object by web mercator without using ArcGisPoint or ArcGisLocation? 

0 Kudos