Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
CreatureChat
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
Public
CreatureChat
Commits
2ac69cb8
Commit
2ac69cb8
authored
Apr 04, 2024
by
Jonathan Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix small bug fix which breaks rotation logic of chat bubble. Lower chat bubble a bit.
parent
9dffc2f4
Pipeline
#11935
passed with stage
in 19 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ClientInit.java
src/client/java/com/owlmaddie/ClientInit.java
+2
-2
No files found.
src/client/java/com/owlmaddie/ClientInit.java
View file @
2ac69cb8
...
...
@@ -229,7 +229,7 @@ public class ClientInit implements ClientModInitializer {
matrices
.
push
();
// Interpolate entity position (smooth motion)
double
paddingAboveEntity
=
0.
5
D
;
double
paddingAboveEntity
=
0.
4
D
;
Vec3d
interpolatedEntityPos
=
new
Vec3d
(
MathHelper
.
lerp
(
partialTicks
,
entity
.
prevX
,
entity
.
getPos
().
x
),
MathHelper
.
lerp
(
partialTicks
,
entity
.
prevY
,
entity
.
getPos
().
y
),
...
...
@@ -248,7 +248,7 @@ public class ClientInit implements ClientModInitializer {
double
yaw
=
-(
Math
.
atan2
(
difference
.
z
,
difference
.
x
)
+
Math
.
PI
/
2
D
);
// Convert yaw to Quaternion
float
halfYaw
=
(
float
)
yaw
*
0.
4
f
;
float
halfYaw
=
(
float
)
yaw
*
0.
5
f
;
double
sinHalfYaw
=
MathHelper
.
sin
(
halfYaw
);
double
cosHalfYaw
=
MathHelper
.
cos
(
halfYaw
);
Quaternionf
yawRotation
=
new
Quaternionf
(
0
,
sinHalfYaw
,
0
,
cosHalfYaw
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment