【发布时间】:2014-02-04 14:13:33
【问题描述】:
这是我想给予向上速度的对象
local myImage = display.newImage( "rose.png" )
myImage.x = 320
myImage.y = 500
myImage.rotation = 0
physics.addBody( myImage, { density=0.1, friction=2.0, bounce=0.0,velocity=-40 } )
提供向上速度的功能
local function test()
myImage:setLinearVelocity(0, -20)
end
test()
物体没有向上移动,这是我的物理原理:
adding Physics
local physics =require("physics")
physics.setGravity(0,0.9)
physics.start()
【问题讨论】: