This commit is contained in:
Atsuishio 2025-06-24 01:18:42 +08:00 committed by Light_Quanta
parent 9ce6963408
commit 25dcbfd983
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959

View file

@ -913,7 +913,7 @@ public abstract class VehicleEntity extends Entity {
}
public void passengerWeaponAutoAimFormVector(float ySpeed, float xSpeed, float minXAngle, float maxXAngle, Vec3 shootVec) {
//shootVec是需要让武器站以这个角度发射的向量
//shootVec是需要让武器站以这个角度发射的向量
float diffY = (float) Mth.wrapDegrees(-getYRotFromVector(shootVec) + getYRotFromVector(getGunnerVector(1)));
float diffX = (float) Mth.wrapDegrees(-getXRotFromVector(shootVec) + getXRotFromVector(getGunnerVector(1)));