Browse Source

Track markers always drwan forced.

D button switches off the object details and the velocity arrow but keeps the track marker (blue) still.
refactor/modularize
RUSHIL AMBARISH KADU 8 months ago
parent
commit
5374e7a619
  1. 8
      steps/src/p5/radarSketch.js

8
steps/src/p5/radarSketch.js

@ -101,10 +101,12 @@ export const radarSketch = function (p) {
const frameData = appState.vizData.radarFrames[appState.currentFrame]; const frameData = appState.vizData.radarFrames[appState.currentFrame];
if (frameData) { if (frameData) {
drawRegionsOfInterest(p, frameData, plotScales); drawRegionsOfInterest(p, frameData, plotScales);
// Draw object trajectories and markers if enabled
if (toggleVelocity.checked) {
drawTrackMarkers(p, plotScales); drawTrackMarkers(p, plotScales);
}
// Draw object trajectories and markers if enabled
// if (toggleVelocity.checked) {
// drawTrackMarkers(p, plotScales);
// }
if (togglePredictedPos.checked) { if (togglePredictedPos.checked) {
for (const track of appState.vizData.tracks) { for (const track of appState.vizData.tracks) {
const log = track.historyLog.find( const log = track.historyLog.find(

Loading…
Cancel
Save