Skip to content

Commit 08391ec

Browse files
author
Michael Gevlich
committed
Fixed color
1 parent ef0c32f commit 08391ec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/geoObject/geoObject.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,12 @@
9191
let fi = f[i];
9292
if (Math.abs(fi[STATE_INDEX.longitude]) > 0.1 && Math.abs(fi[STATE_INDEX.latitude]) > 0.1) {
9393
entities.push(new Entity({
94-
lonlat: new LonLat(fi[STATE_INDEX.longitude], fi[STATE_INDEX.latitude], fi[STATE_INDEX.baro_altitude]),
94+
lonlat: new LonLat(fi[STATE_INDEX.longitude], fi[STATE_INDEX.latitude], fi[STATE_INDEX.baro_altitude] + 10000),
9595
yaw: fi[STATE_INDEX.true_track] * Math.PI / 180,
9696
pitch: 0,
9797
scale: 0.2,
9898
geoObject: {
99-
instanced: true,
99+
color: "white",
100100
tag: `category:${fi[STATE_INDEX.category]}`,
101101
object3d: airplaneObj[0],
102102
},
@@ -121,7 +121,7 @@
121121
let ei = entities[i];
122122
let dir = ei.geoObject.getDirection();
123123
let currPos = ei.getCartesian();
124-
let newPos = currPos.add(dir.scaleTo(ei.properties.velocity * 2));
124+
let newPos = currPos.add(dir.scaleTo(ei.properties.velocity * 0.3));
125125
ei.setCartesian3v(newPos);
126126
}
127127
});

0 commit comments

Comments
 (0)