📅  最后修改于: 2022-03-11 14:56:49.485000             🧑  作者: Mango
Vector unitVector = new Vector(player.getLocation().getDirection().getX(), 0, player.getLocation().getDirection().getZ());
unitVector = unitVector.normalize();
player.setVelocity(unitVector.multiply(2));