添加63式的信息显示

This commit is contained in:
Atsuishio 2025-07-13 12:54:25 +08:00 committed by Light_Quanta
parent d12ab212a6
commit 949fe96bec
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959
3 changed files with 9 additions and 11 deletions

View file

@ -195,7 +195,7 @@ public class Type63Entity extends ContainerMobileVehicleEntity implements GeoEnt
// setTurretYRot(getTurretYRot() + 1);
// setTurretXRot(getTurretXRot() + 1);
interactionTick *= 0.9;
interactionTick *= 0.96;
this.refreshDimensions();
}
@ -219,10 +219,10 @@ public class Type63Entity extends ContainerMobileVehicleEntity implements GeoEnt
@Override
public void travel() {
float diffY = entityData.get(YAW) - getTurretYRot();
this.setTurretYRot(Mth.clamp(this.getTurretYRot() + 0.25f * diffY, -15, 15));
this.setTurretYRot(Mth.clamp(this.getTurretYRot() + 0.1f * diffY, -15, 15));
float diffX = entityData.get(PITCH) - getTurretXRot();
this.setTurretXRot(Mth.clamp(this.getTurretXRot() + 0.25f * diffX, -60, 5));
this.setTurretXRot(Mth.clamp(this.getTurretXRot() + 0.1f * diffX, -60, 5));
double s0 = getDeltaMovement().dot(this.getViewVector(1));
@ -230,13 +230,6 @@ public class Type63Entity extends ContainerMobileVehicleEntity implements GeoEnt
this.setRightWheelRot((float) (this.getRightWheelRot() - 1.75 * s0));
}
public Vec3 getTurretVector(float pPartialTicks) {
Matrix4f transform = getTurretTransform(pPartialTicks);
Vector4f rootPosition = transformPosition(transform, 0, 0, 0);
Vector4f targetPosition = transformPosition(transform, 0, 0, 1);
return new Vec3(rootPosition.x, rootPosition.y, rootPosition.z).vectorTo(new Vec3(targetPosition.x, targetPosition.y, targetPosition.z));
}
@Override
public Matrix4f getTurretTransform(float ticks) {
Matrix4f transformV = getVehicleTransform(ticks);

View file

@ -1,5 +1,5 @@
{
"ID": "superbwarfare:mortar",
"MaxHealth": 100,
"MaxHealth": 40,
"Mass": 0.05
}

View file

@ -0,0 +1,5 @@
{
"ID": "superbwarfare:type_63",
"MaxHealth": 100,
"Mass": 0.45
}