is there anyway to alter a line
Basically i want to show a physics joint, not debug mode
but in the game i need to show the joints as some are joined some are not etc.
so i thought about drawing a line, then moving it in the update loop
but not sure if this is possible.
myJoint = physics.newJoint( “distance”, crates[3], crates[4], crates[3].x, crates[3].y,crates[4].x, crates[4].y)
local jointline = display.newLine( crates[3].x, crates[3].y,crates[4].x, crates[4].y )
jointline:setColor( 255, 102, 102, 255 )
jointline.width = 3
i could create a visible joint with another object - which would kinda be ok for a fixed joint like distance
but i want to have an elastic joint (wheel seems to give a good elastic effect)
or i could create a ‘dotted’ line a bit like a bridge but it seems like too much, as the standard joint works fine - i just need to be able to show it to players.
[import]uid: 1500 topic_id: 34751 reply_id: 334751[/import]
