fkkcloud Posted February 24, 2016 Share Posted February 24, 2016 Hi, Can I use setting x value rather than setting x's velocity? in Physic ARCADE or else if possible for other physic's engine. Somehow, I need to move some box with "setting x value" rather than "setting velocity of x". I know that setting x value will not have make it not collide with it but is it possible to set x value and have collision too? Thanks, Link to comment Share on other sites More sharing options...
icp Posted February 24, 2016 Share Posted February 24, 2016 this.position.x += yourValue * this.game.time.physicsElapsed; this.position.y += yourValue * this.game.time.physicsElapsed; Collisions will work with any physics engine (ARCADE, P2, BOX2D, SAT.js). fkkcloud 1 Link to comment Share on other sites More sharing options...
Recommended Posts