Skip to content

Commit a6ffdf7

Browse files
committed
uncomment EntitySetHeadYaw
1 parent 03f1db4 commit a6ffdf7

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

crates/hyperion/src/egress/sync_position.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,15 @@ impl Module for SyncPositionModule {
8686
.exclude(io)
8787
.send(&world)?;
8888

89-
// let pkt = play::EntitySetHeadYawS2c {
90-
// entity_id,
91-
// head_yaw: ByteAngle::from_degrees(position.yaw),
92-
// };
93-
//
94-
// compose
95-
// .broadcast(&pkt, system_id)
96-
// .exclude(io)
97-
// .send(&world)?;
89+
let pkt = play::EntitySetHeadYawS2c {
90+
entity_id,
91+
head_yaw: ByteAngle::from_degrees(**yaw as f32),
92+
};
93+
94+
compose
95+
.broadcast(&pkt, system_id)
96+
.exclude(io)
97+
.send(&world)?;
9898

9999
if reaction.velocity != Vec3::ZERO {
100100
let velocity = reaction

0 commit comments

Comments
 (0)