Jednoliko pravocrtno gibanje

Jednoliko pravocrtno gibanje preview image

1 collaborator

Default-person Hrvoje Mladinić (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.0.2 • Viewed 298 times • Downloaded 45 times • Run 0 times
Download the 'Jednoliko pravocrtno 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

turtles-own 
[d_x]

globals
[s v B d_t]

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

to setup-pozadina
   set B random 15
   ask patch -10 0 
   [
     set pcolor grey
     set plabel "A"  
   ]
   ask patch B 0 
   [
     set pcolor grey
     set plabel "B"
   ]
end 

to setup-cestica
    create-turtles 1
    ask turtle 0 
    [
    set color red
    setxy -10 0
    set heading 90
    set shape "car" 
    if putanja? 
    [
      pen-down
    ]
    ]
end 

to go
  ask turtle 0 
  [
  ifelse xcor <= B
  [
  unos
  izracun
  ]
  
  [ 
  set v 0
  ]
  ]
  tick
end 

to unos
    set v brzina
    set d_t 0.001
end 

to izracun 
  set d_x (v * d_t)
  set xcor (xcor + d_x) 
  set s (s + d_x)
end 



  
  

There are 4 versions of this model.

Uploaded by When Description Download
Hrvoje Mladinić over 12 years ago Jednoliko pravocrtno gibanje Download this version
Hrvoje Mladinić over 12 years ago Reverted to older version Download this version
Hrvoje Mladinić over 12 years ago Jednoliko pravocrtno gibanje Download this version
Hrvoje Mladinić over 12 years ago Initial upload Download this version

Attached files

File Type Description Last updated
Jednoliko pravocrtno gibanje.png preview Jednoliko pravocrtno gibanje about 12 years ago, by Hrvoje Mladinić Download

This model does not have any ancestors.

This model does not have any descendants.