Tuesday, 26 February 2008

Just signed up to blogger - testing

My wind response agent, no change since last lesson:

# CDL created with massive v3.0.1

units m

object wind Respond
id 1
colour 0.000000
angles degrees
render_pass 1 shadowpass velocity visible casts_shadows
render_pass 2 beauty velocity visible casts_shadows
bounding_box_tolerance 0
collisions normal
dynamics
angle spring 500.000000
angle dampen 0.000000
angle friction 0.100000
collision spring 1000.000000
collision dampen 100.000000
collision friction 100.000000
CFM 0.000000
ERP 0.200000
ODE ff 1.000000
collision CFM 0.000000
collision ERP 0.200000
collision mu 1.000000
bounce 0.000000
bounce velocity 0.000000
drag 0.000000
gravity 980.000000
steps 1000
end dynamics

segment box
translate 240 520
density 0.01000000
primitive box
size 1.000000 0.200000 0.200000
centre 0.000000 0.000000 0.000000

geometry geo
id 1
translate 240 440

fuzzy input
id 1
name wind.x
translate -400 560
channel wind.x
integrate position
range 0.000000 1.000000
fuzzy output
id 2
name tx
translate -280 560
channel tx
defuzz COM
integrate position
range 0.000000 1.000000
1 input 1
fuzzy input
id 3
name wind.z
translate -400 500
channel wind.z
integrate position
range 0.000000 1.000000
fuzzy output
id 4
name tz
translate -280 500
channel tz
defuzz COM
integrate position
range 0.000000 1.000000
1 input 3
fuzzy output
id 5
name box ry
translate -280 380
channel box:ry
defuzz COM
integrate position
range 0.000000 1.000000
1 input 6
fuzzy input
id 6
name -(atan(wind.z/wind.x))
translate -400 380
channel -(atan(wind.z/wind.x))
integrate position
range 0.000000 1.000000

tree active 0

end object



Hope to combine with two other agents as macros.

No comments: