Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

251
Views
Cesium: establezca el desplazamiento de altura en SampledProperty con ClampToGround

Estoy usando un ejemplo de castillo de arena para animar una entidad usando los métodos SampledProperty y clampToGround. Quiero agregar la distancia de altura entre la entidad y la ruta en la que se mueve.

Probé la solución dada en este enlace pero no obtuve ningún cambio en la posición de la entidad. Aquí está el enlace del castillo de arena.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Lo resolvió modificando el código de la siguiente manera:

 function start() { clock.shouldAnimate = true; var objectsToExclude = [entity]; scene.postRender.addEventListener(function () { var position = positionProperty.getValue(clock.currentTime); var clampPos = scene.clampToHeight(position, objectsToExclude); clampPos = Cesium.Matrix4.multiplyByPoint(Cesium.Transforms.eastNorthUpToFixedFrame(clampPos),new Cesium.Cartesian3(0, 0, 2), new Cesium.Cartesian3()); entity.position = clampPos; }); }

enlace castillo de arena

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!