just tried it and this worked for me.
Added a rigid body action to a box.
Set its "PRB Dynamic" to "kinematic"
Added a micro script with the following code:
- Code: Select all
obj = 0;
x = 0;
y = 0;
z = 0;
function onInit(objID)
obj = objID;
x,y,z = entity.getPosition(obj)
end
function onUpdate(td)
pBodyID = physics.getBodyID(obj);
physics.move(pBodyID, x, y, z)
x=x+1*td
end
This when run even pushes a ball out of the way.
Note: the move command uses direct/absolute co-ords rather than accumulative. Therefor you have to increment the position on each frame for this to work
Hope this helps