Chipmunk smooth Movement

Hi,
Im currently building a platformer using cocos2d-js and chipmunk physics im looking to see if anyone can help with my player movement its a dynamic body and passes through static bodies im updating the bodies velocity every update i have read its not correct to do this?.
Can anyone help?

Where did you read this… ?
Its not a bad way as far as you are getting your results… I think you’re concerned more on changing velocity but on every update … Is it? If you’re changing the velocity every frame(every update) then you might consider adding force to the playerbody which will automatically increase speed…

Just check… I am not much sure…

It was a post for collision detection my problem is that my player moves through the walls.

this is what im using moveX is just a - or + depending on direction
var vel = this.body.getVel();
vel.x = moveX;
this.body.setVel(vel);

do you have any examples of an updat ei could use to fix the collision problem
Thank you.