How to set entity position with WGS84 coordinates?

91 views
Skip to first unread message

fili...@gmail.com

unread,
Nov 30, 2018, 1:19:16 PM11/30/18
to cesium-dev
Hello

I need to move an entity following WGS84coordinates but I think it have to be converted to cartesian because when I try

var position = Cesium.Cartesian3.fromDegrees(lat, long, altitude);

the entity is to wrong place...

Any one can help me for that?

Thank you very much

Omar Shehata

unread,
Dec 3, 2018, 2:00:05 PM12/3/18
to cesium-dev
You're passing in the parameters in the wrong order. Cesium takes longitude first, see:

fili...@gmail.com

unread,
Dec 3, 2018, 4:59:36 PM12/3/18
to cesium-dev
Thank a lot, I'm too stupid, I didn't seen this crazy mistake!!
Reply all
Reply to author
Forward
0 new messages