mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-26 12:43:16 +00:00
Player Abilities
This commit is contained in:
1 parent
601b0d721e
commit
1b8ad4dd90
92 files changed
+2610
-1025
No files matched your search
@@ -75,9 +75,10 @@ public class AnchorPointHelper {
|
||||
|
||||
switch (anchor) {
|
||||
case FRONT:
|
||||
x -= Math.sin(headYaw) * frontOffset * scale;
|
||||
y += height * FRONT_HEIGHT;
|
||||
z += Math.cos(headYaw) * frontOffset * scale;
|
||||
Vec3 look = entity.getLookVec();
|
||||
x += look.xCoord * frontOffset * scale;
|
||||
y += height * FRONT_HEIGHT + look.yCoord * frontOffset * scale;
|
||||
z += look.zCoord * frontOffset * scale;
|
||||
break;
|
||||
|
||||
case CENTER:
|
||||
|
||||
Reference in new issue
Block a user