|
发表于 2008-8-2 10:14:04
|
显示全部楼层
[jass]function PolarProjectionBJ takes location source,real dist,real angle returns location
local real x = GetLocationX(source) + dist * Cos(angle * bj_DEGTORAD)
local real y = GetLocationY(source) + dist * Sin(angle * bj_DEGTORAD)
return Location(x, y)
endfunction[/jass]
看看这里
抄这个公式吧
顺便说下..设置坐标单位的移动速度不能为0 |
|