I tried adding a line trail to the HelloPhysics sample for this post: http://developer.anscamobile.com/forum/2011/03/25/creating-trail-behind-moving-object
and noticed the line drawing has some spikes when the points reverse their ‘direction’.
Try out this code:
local seg = display.newLine( 67.242340087891, 373.66983032227, 66.446701049805, 375.57080078125 )
seg:append( 68.797134399414, 371.37509155273 )
seg:setColor(255, 0, 0, 150)
seg.width = 40
That looks like a bug to me. The width controls the size of the ‘spike’. [import]uid: 27183 topic_id: 8320 reply_id: 308320[/import]