I am making a player that can move but after I change the collision type from Kinematic to Dynamic, it can’t move by change the position.
I try disable the collision then move then enable the collision.
function init(self)
self.vel = vmath.vector3()
end
function update(self, dt)
msg.post("#collisionobject", "disabled")
local pos = go.get_position()
pos = pos + self.vel * dt
go.set_position(pos)
msg.post("#collisionobject", "disabled")
end
After I test, the player can move. But when it fall, it fall slowly.
How can I make it fall faster?