- Nouveau TiedUpRigConstants.java : centralise MODID/LOGGER/identifier/prefix, constantes runtime (IS_DEV_ENV, A_TICK, GENERAL_ANIMATION_TRANSITION_TIME, MAX_JOINTS), factory ANIMATOR_PROVIDER (client/server split) + helpers stacktraceIfDevSide/logAndStacktraceIfDevSide. - sed global : EpicFightMod.* → TiedUpRigConstants.* - sed global : EpicFightSharedConstants.* → TiedUpRigConstants.* - sed global : EpicFightRenderTypes → TiedUpRenderTypes (class rename upstream) - Fix package declarations : Armature.java + TiedUpRenderTypes.java Résidus yesman.epicfight : 115 → 86 (-29) Reste : gameasset/physics/network/world/config/skill (combat deps à strip) + combat mode refs dans patch/LocalPlayerPatch + ClientPlayerPatch (Phase 2).
76 lines
1.4 KiB
Java
76 lines
1.4 KiB
Java
/*
|
|
* Derived from Epic Fight (https://github.com/Epic-Fight/epicfight)
|
|
* by the Epic Fight Team, licensed under GPLv3.
|
|
* Modifications © 2026 TiedUp! Remake Contributors, distributed under GPLv3.
|
|
*/
|
|
|
|
package com.tiedup.remake.rig.math;
|
|
|
|
public class Vec4f extends Vec3f {
|
|
public float w;
|
|
|
|
public Vec4f() {
|
|
super();
|
|
this.w = 0;
|
|
}
|
|
|
|
public Vec4f(float x, float y, float z, float w) {
|
|
super(x, y, z);
|
|
this.w = w;
|
|
}
|
|
|
|
public Vec4f(Vec3f vec3f) {
|
|
super(vec3f.x, vec3f.y, vec3f.z);
|
|
this.w = 1.0F;
|
|
}
|
|
|
|
public void set(float x, float y, float z, float w) {
|
|
this.x = x;
|
|
this.y = y;
|
|
this.z = z;
|
|
this.w = w;
|
|
}
|
|
|
|
public void set(Vec4f vec4f) {
|
|
super.set(vec4f);
|
|
this.w = vec4f.w;
|
|
}
|
|
|
|
public Vec4f add(float x, float y, float z, float w) {
|
|
this.x += x;
|
|
this.y += y;
|
|
this.z += z;
|
|
this.w += w;
|
|
return this;
|
|
}
|
|
|
|
public static Vec4f add(Vec4f left, Vec4f right, Vec4f dest) {
|
|
if (dest == null) {
|
|
dest = new Vec4f();
|
|
}
|
|
|
|
dest.x = left.x + right.x;
|
|
dest.y = left.y + right.y;
|
|
dest.z = left.z + right.z;
|
|
dest.w = left.w + right.w;
|
|
|
|
return dest;
|
|
}
|
|
|
|
@Override
|
|
public Vec4f scale(float f) {
|
|
super.scale(f);
|
|
this.w *= f;
|
|
return this;
|
|
}
|
|
|
|
public Vec4f transform(OpenMatrix4f matrix) {
|
|
return OpenMatrix4f.transform(matrix, this, this);
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "Vec4f[" + this.x + ", " + this.y + ", " + this.z + ", " + this.w + "]";
|
|
}
|
|
}
|