setLinearVelocity speed

How can I increase the speed of setLinearVelocity ?

local function fireProj( event ) local proj = display.newImageRect( "object.png", 64, 64 ) physics.addBody( proj, { bounce=0.2, density=1.0, radius=14 } ) proj.x, proj.y = event.xStart, event.yStart local vx, vy = event.x-event.xStart, event.y-event.yStart  proj:setLinearVelocity( vx,vy ) end

try scaling by some value tuned for your gameplay:

local VELOCITY\_SCALE = 2.0 -- tune as desired proj:setLinearVelocity( vx\*VELOCITY\_SCALE, vy\*VELOCITY\_SCALE )

thanks dave

try scaling by some value tuned for your gameplay:

local VELOCITY\_SCALE = 2.0 -- tune as desired proj:setLinearVelocity( vx\*VELOCITY\_SCALE, vy\*VELOCITY\_SCALE )

thanks dave