Hi All
we have this command,
phy set cloth external acceleration id x#,y#,z#
now I am trying to see how to take the information that my weather station gives me into that command.
the station gives me wind speed as here.windspeednow which is in knots
here.winddirection which is given as 0.0 for north up to 16.0 which is north again, so 7.0 is south.
so which bit should do which
x# is for ??
y# is for ??
and z# is for ??
thinking some thing like this
if here.winddirection = 10.0 (west)
phy set cloth external acceleration id -here.windspeed,0,0
endif
the above did not work.
what do you think.
edit
here how I am thinking of doing it
select here.winddirection
case 0.0 : objectn = North_0 : text1$="North N 0(360)": text2$=" N ":phy set cloth external acceleration 7000,0,0,100: EndCase
case 1.0 : objectn = NNE_1 : text1$="North-northeast NNE 22.5": text2$=" NNE ": EndCase
case 2.0 : objectn = NE_2 : text1$="Northeast NE 45": text2$=" NE ": EndCase
case 3.0 : objectn = ENE_3 : text1$="East-northeast ENE 67.5": text2$=" ENE ": EndCase
case 4.0 : objectn = E_4 : text1$="East E 90": text2$=" E ": phy set cloth external acceleration 7000,100,0,0:EndCase
case 5.0 : objectn = ESE_5 : text1$="East-southeast ESE 112.5": text2$=" ESE ": EndCase
case 6.0 : objectn = SE_6 : text1$="Southeast SE 135": text2$=" SE ": EndCase
case 7.0 : objectn = SSE_7 : text1$="South-southeast SSE 157.5": text2$=" SSE ": EndCase
case 8.0 : objectn = S_8 : text1$="South S 180": text2$=" S ":phy set cloth external acceleration 7000,0,0,-100: EndCase
case 9.0 : objectn = SSW_9 : text1$="South-southwest SSW 202.5": text2$=" SSW ": EndCase
case 10.0 : objectn = SW_10 : text1$="Southwest SW 225": text2$=" SW ": EndCase
case 11.0 : objectn = WSW_11 : text1$="West-southwest WSW 247.5": text2$=" WSW ": EndCase
case 12.0 : objectn = W_12 : text1$="West W 270": text2$=" W ": phy set cloth external acceleration 7000,-100,0,0:EndCase
case 13.0 : objectn = WNW_13 : text1$="West-northwest WNW 22.5": text2$=" WNW ": EndCase
case 14.0 : objectn = NW_14 : text1$="Northwest NW 315": text2$=" NW ": EndCase
case 15.0 : objectn = NNW_15 : text1$="North-northwest NNW 337.5": text2$=" NNW ": EndCase
case 16.0 : objectn = North_0 : text1$="North N 0(360)": text2$=" N ": EndCase
endselect
Dark Physics makes any hot drink go cold.