Airplane Landing Example 3D

Airplane Landing Example 3D preview image

1 collaborator

Uri_dolphin3 Uri Wilensky (Author)

Tags

(This model has yet to be categorized with any tags)
Model group CCL | Visible to everyone | Changeable by group members (CCL)
Model was written in NetLogo 3D 4.1pre7 • Viewed 1165 times • Downloaded 72 times • Run 0 times
Download the 'Airplane Landing Example 3D' modelDownload this modelEmbed this model

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


WHAT IS IT?

This model is an animation of an airplane landing at an airport.

Comments and Questions

Click to Run Model

globals [ speed ]

to setup
  ca
  crt 1 [ setxy 4 4 set roll -45 set color red set shape "airplane" ]
  set speed .1
  ask patches with [ pzcor = -8 ] [ set pcolor green + (random-float 2) - 1 ]
  ask patches with [ pzcor = -8 and pxcor > -12 and pxcor < -4 ]
    [ set pcolor gray ]
  ask patches with [ pxcor = 5 and pycor = -7 and pzcor > -8 and pzcor < -1 ]
    [ set pcolor gray - 3 ]
  ask patches with [ pxcor > 3 and pxcor < 11 and pycor > -3 and pycor < 10 and pzcor = -7 ]
    [ set pcolor gray + 3 ]
end 

to go
  if speed = 0 [ stop ]
  ask turtles [
    if ( heading != 180 )
    [ set heading heading - 1 ]
    if ( pitch != 345 and heading <= 180.1 and zcor > -6 )
    [ set pitch precision (pitch - .1) 3 ]
    if ( roll != 0 and heading < 226 )
    [ set roll precision (roll + 1) 3 ]
    if ( roll = 0 and pitch = -15 )
    [ set zcor zcor - .00 ]

    if ( zcor < -6.2 and pitch != 0 )
    [ set pitch precision (pitch + .2) 3 ]

    if ( zcor < -6.2 and pitch = 0 and speed > 0 )
    [ set speed speed - .001 ]

    fd speed

  ]
  tick
end 


; Copyright 2004 Uri Wilensky. This code may be freely copied, distributed,
; altered, or otherwise used by anyone for any legal purpose.

There are 3 versions of this model.

Uploaded by When Description Download
Uri Wilensky over 14 years ago Updated from NetLogo 4.1 Download this version
Uri Wilensky over 14 years ago Model from NetLogo distribution Download this version
Uri Wilensky over 14 years ago Airplane Landing Example 3D Download this version

Attached files

File Type Description Last updated
Airplane Landing Example 3D.png preview Preview for 'Airplane Landing Example 3D' over 11 years ago, by Uri Wilensky Download

This model does not have any ancestors.

This model does not have any descendants.