GamerJoep/MinetopiaVehicles

Helicopter rod rotation speed is UNREAL

Closed this issue · 2 comments

Outline

Make helicopter blade rotate faster for it to fit with fast helicopters like attacking helicopters or helicopters with high movement speed.

How?

The helicopter blade rotation speed is against physicals. You can make helicopter blade rotate faster for it to fit with fast helicopters like attacking helicopters or helicopters with high movement speed.

Photos, videos, sketches (optional)

bandicam.2023-07-21.16-37-42-172.online-video-cutter.com.mp4

This is currently not made using animated models. However, I could alter the rotation speed in the code (see the yawAdd variable):

protected void rotors() {
double xOffset = VehicleData.wiekenx.get("MTVEHICLES_WIEKENS_" + license);
double yOffset = VehicleData.wiekeny.get("MTVEHICLES_WIEKENS_" + license);
double zOffset = VehicleData.wiekenz.get("MTVEHICLES_WIEKENS_" + license);
final Location locvp = standMain.getLocation().clone();
final Location fbvp = locvp.add(locvp.getDirection().setY(0).normalize().multiply(xOffset));
final float zvp = (float) (fbvp.getZ() + zOffset * Math.sin(Math.toRadians(standRotors.getLocation().getYaw())));
final float xvp = (float) (fbvp.getX() + zOffset * Math.cos(Math.toRadians(standRotors.getLocation().getYaw())));
float yawAdd = (isFalling) ? 5 : 15;
if (extremeFalling) yawAdd = 0;
final Location loc = new Location(standMain.getWorld(), xvp, standMain.getLocation().getY() + yOffset, zvp, standRotors.getLocation().getYaw() + yawAdd, standRotors.getLocation().getPitch());
schedulerRun(() -> standRotors.teleport(loc));
}

Make it higher. Closing as unplanned