Cannot make applyForce working


I cannot make it work. Making me crazy.
1/ I created a cube on a plane.
2/ Put an always sensor and a python controller with
"from bge import logic
cont = logic.getCurrentController()
own = cont.owner
And… nothing
No prob with applyTorque([0.1,0.1,0],True)!
Can anybody save me?..


I’m using Blender 2.65a on windows 64 bit.

The cube must be Dynamic or Rigid body in the Physics panel.

I downloaded your .blend file, you problem is the strength. You need more than 0.1 force to move an object that has mass of 1.0.

from bge import logic
py = logic.getCurrentController()
ob = py.owner

x = 2
y = 1
z = 0
local = True

ob.applyForce([x, y, z], local)