jednoliko gibanje

No preview image

1 collaborator

Default-person Leona Križanac (Author)

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 192 times • Downloaded 26 times • Run 0 times
Download the 'jednoliko gibanje' 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_x1
  d_x2
  d_t1
  d_t2
  v1
  v2
  s1
  s2
]

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

to go
  ask turtle 0
  [
    unos1
    izračun1
  ]

   ask turtle 1
  [
    unos2
    izračun2
   ]
  tick
end 

to setup-automobil
  create-turtles 2

  ask turtle 0


  [
    setxy  -20 0
    set shape oblik1
    set heading 90
    set size 3
    set color blue
  ]

ask turtle 1


[
  setxy -20 5
  set shape oblik2
  set heading 80
  set size 5
  set color yellow
]
end 

to unos1

  set d_t1 0.01
  set v1 brzina1
end 

to unos2
  set d_t2 0.01
  set v2 brzina2
end 

to izračun1
   set d_x1 (v1 * d_t1)
   set xcor ( xcor + d_x1)
   set s1 (s1 + d_x1)
end 

to izračun2

  set d_x2 (v2 * d_t2)
  set xcor (xcor + d_x2)
  set s2(s2 + d_x2)
end 

There is only one version of this model, created over 9 years ago by Leona Križanac.

Attached files

No files

This model does not have any ancestors.

This model does not have any descendants.