Hello defolders,
I recently started using Defold and so far I’m loving it!
I am building a small 2D spaceship & asteroid super classic shooter.
The movement is free, A and D rotate the ship, W for thrust.
I am totally relying on physics for this, meaning that the ship collides with asteroids, they move as consequence, and all kinda works.
The problem i’m having is with the maximum ship speed.
To thrust, i apply a force:
msg.post("#collisionobject", "apply_force", {
force = vmath.vector3(x, y, z),
position = go.get_position()
})
that #collisionobject is the ship collider. And it works, however it seems that no matter how much force i apply, the speed does not go beyond a certain threshold.
From my physics classes i remember that, if the force applied to a body is constantly growing, so is the speed, unless there is friction, which is not the case because i disabled everything.
Is there something i’m missing, or am doing wrong here?