How to not allow kinematic physics bodies to pass through static bodies?
问题 My game scene consist of four walls, which are static bodies, and one platform plate, which is of type kinematic and slides only horizontally, something like the picture below. The platform body moves based on acceleration sensor, see this codes @Override public void onAccelerationChanged(AccelerationData pAccelerationData) { mPlatformBody.setLinearVelocity(pAccelerationData.getX() * 10, 0); } My problem is when the platform goes off the boundary walls, which it should not. For resolving this