Ferrari

Ferrari preview image

1 collaborator

Tags

(This model has yet to be categorized with any tags)
Visible to everyone | Changeable by the author
Model was written in NetLogo 5.3.1 • Viewed 164 times • Downloaded 26 times • Run 0 times
Download the 'Ferrari' modelDownload this modelEmbed this model

Do you have questions or comments about this model? Ask them here! (You'll first need to log in.)


Comments and Questions

Please start the discussion about this model! (You'll first need to log in.)

Click to Run Model

globals
[
  d_x
  s
  v
  d_t
  v2
  d_x2
  s2
  d_t2


]

to setup
    clear-all
setup-pozadina
setup-automobil
  reset-ticks
end 

to go
  ask turtle 0
  [
  unos
  izračun

  ]
  ask turtle 1
  [
    unos2
    izračun2
  ]
 tick
end 

to setup-automobil
  create-turtles 2
  ask turtle 0
  [
  setxy -10 -4
  set shape OblikPrvi
  set color red
  set size VeličinaPrva
  if PutanjaPrva
  [
    pen-down
  ]
  ]
  ask turtle 1
  [
    setxy -10 6
    set shape oblikdva
    set color yellow
    set size VeličinaDruga
    if PutanjaDruga
    [
      pen-down
    ]
  ]
end 

to unos
  set d_t 0.001
  set v BrzinaPrva
end 

to izračun
   set d_x (v * d_t)
   set xcor (xcor + d_x)
   set s (s + d_x)
end 

to unos2
  set d_t 0.001
  set v2 BrzinaDruga
end 

to izračun2
  set d_x2 (v2 * d_t)
  set xcor (xcor + d_x2)
  set s2 (s2 + d_x2)
end 

to setup-pozadina
  ask patches
  [
    set pcolor 97
  ]
end 

There is only one version of this model, created over 8 years ago by Bartul Andrijašević.

Attached files

File Type Description Last updated
Ferrari.png preview Preview for 'Ferrari' over 8 years ago, by Bartul Andrijašević Download

This model does not have any ancestors.

This model does not have any descendants.