I am trying to write a code in Phys2d in which an object(BOX) is supposed to be moved from location A to location B with the Velocity of 2 m/s in certain direction let suppose North.
I’m new to this game programming specially physics & I don’t know how should i have to set the velocity…I just read in few demos (they wern’t even clear )
following is the code but box is not moving, do I need to apply force as well??
… new Box(“Truck”,10.0f, 10.0f, 100.0f);
Truck.setPosition(262, 184);
Truck.setPaint(Color.blue);
Truck.adjustVelocity(new Vector2f(0f, -35f));
World.add(Truck);
any help will be highly appreciated…