We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03f1db4 commit a6ffdf7Copy full SHA for a6ffdf7
crates/hyperion/src/egress/sync_position.rs
@@ -86,15 +86,15 @@ impl Module for SyncPositionModule {
86
.exclude(io)
87
.send(&world)?;
88
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)?;
+ let pkt = play::EntitySetHeadYawS2c {
+ entity_id,
+ head_yaw: ByteAngle::from_degrees(**yaw as f32),
+ };
+
+ compose
+ .broadcast(&pkt, system_id)
+ .exclude(io)
+ .send(&world)?;
98
99
if reaction.velocity != Vec3::ZERO {
100
let velocity = reaction
0 commit comments