How do you calculate the x,y coordinate at the tip of a tilted (rotated) object?
This code doesn’t do it:
local sign = 1.00
if (dart.rotation<0) then sign=-1.00 end
local tipX = dart.x+16.00*( math.cos(math.rad(dart.rotation)) ) * sign
local tipY = dart.y-16.00*( math.sin(math.rad(dart.rotation)) ) * sign
Thanks
Paul [import]uid: 51895 topic_id: 33723 reply_id: 333723[/import]