[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[How can I use "sine function" in lua script?]



Mr.David,

Can I use sine or cosine function in lua file? I used like followings.
But there are some errors. I want to know the reason why.

[lua script]

...
point_x = 50 * math_cos(delta*pi/180)
point_y = 50 * math_sin(delta*pi/180)

addnode(pointx, pointy)
...

Could you tell me the reason and solution?


Thanks.

Kang ho