:=「
==F三
二
=三
F=「
1‐
│=ヽ iバ ,た ,■ ■ 鷹 t,‐ 織 ヽ ´ ■1=: 8お │■ ●=│‖ よ│■ ● `出 ●●` ‐■ ■″ =‖ ・ =● ^‐ … ''● '品
““““
│==:=:==「
響 羹 一簗 一攣
T'T=■
…
=:「
aCC displayRectangle:leg at: lp."
position -position
displayOn:gc perspectiveShapeFrorointi ov direction: s heightFrom: ip viewAngie: va
process
l
^sirulation
pr@ess
fi f fu pl ratiO Centre rl xl hll
│
pl :=
setile$bstacleAt
:
anAngle va I ue :aVa I ue
'sot ner obstacle value at las
pOSition―
ov ―(30000).
fi:=height. centre := 200 0 150.
anAngle"
fl i釧 ‖ ifTrue:[fl:=1800]. I
f := 200 / ((va degreesToRadians)tan)
as := (anAngle
YY
360
) //
ratio :=
10.
(obstacleDi rection at: (ag tl ))(= aYalLE ifTrrc:[obstacleDi roction at:(ag+l) put:aYalue] s inu
I
xl :=(((fu nornta12)dotProduct:pl )/
at i onArea ^s
speed
f / ( pl r)
fu := (lp degreesToRadians)cos O ((ip dogroosToRadians)sin).
inllat ion s irulat
((fu dotProduct: pl) ))*f. ratio := (( f OXl) r)/( pl r).
ionArea
hll:=ratio ネheight.
‐
rl :=(x1 0 0)+ Centre.
speed
self displayOn:gc ati rl proportion: ratio. viewAngie
viewAng!e
displayPianOn:gc scale:scale offset:offset sel
RTSObieCt methoJor: 'disp:aving'
f
displayShape0n:gc scale:scale
offset:offset. dispiayAndEraseFinished d i sp I ayShape0n
:
gc sca I e : sca I e of f set : of f set
pp :=position
I centre
pd := direction.
shape eraserilask
ps
imago mask eraser
origin ic
I
isilil ifTrue: lself
class
displayOn:aGC at: pl proportion:p
S p “
create lmages : sca | 6.
lcentre shapel sca I e.
shape := (seif Class shape)at:1. aCC displayPolygon:shape at:pl sca:e:(pOp). "lhead chest body leg hp cp bp lpl
di roct i on.
head := Rectangle origin:000 oxtent:((3000300)ホ p).
positionl
hp:=((15000)ホ
pp:= ifFalse: [(ps = scale)
p)+pl.
chest := Rectangle origin:000 oXtent:((6000600)*
i
fFa I so:
p).
cp:=((00300)ネ
Isel
p)lpl.
f
class createlmages:scale.
body:= Rectangle origin:000 oxtent:((6000500)‡ p).
os := scale.
bp :=((00000)* p)lpl. leg:= Rectang!e origin:000 oxtent:((3000700)‡
lp :=((15001100)ネ p)+pl
C dispiayWedgeBoundecW:head StartAngle:0
phl● :
0w● ● “
360 at: hp.
aCC dispiavLdgeBOundeO: cheSt StartAngic1 0 sweepAngle: 360 at: cp. oOC disp!ayRectang!e: body ati bp.
, .,.
p)
self class image:direction. origin := {D((self sim.rlationArea) bottom). shape :=
ic
at;1. := shape at:Z. mask := shape at:4. erasor :=(self class imag€:Pd) ;=shape
imag€
at:
3.
”“︼螢 一
V 簗 一 一璽 O
一 一﹃ 攣 一攣
摯 墜 一蝉 一響
“”些鵬