a guest Jul 22nd, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- var direction = Cesium.Cartesian3.subtract(target, origin, new Cesium.Cartesian3());
- var forward = Cesium.Cartesian3.normalize(direction, new Cesium.Cartesian3());
- var hpr = Cesium.HeadingPitchRoll.fromDegrees(forward.x, forward.y, forward.z, new Cesium.HeadingPitchRoll())
RAW Paste Data