fix wrong head rotations#220
Conversation
- rename yaw/pitch to y_rot_deg/x_rot_deg to avoid confusions between units
|
is tick_water swim boost is inverted? with 3rd person camera, old code checked 8 corners against is_opaque_full_cube LivingEntity carries both look_dir.y_rot_deg and head_y_rot_deg.., split into head_dir + body_y_rot_target x2 negation on head pitch: callers pass -info.head_x_rot_deg, then the anim fn does -head_x_rot_deg again SubAssign for Position is inconsistent with Sub for Position: - returns a DVec3 delta which is good but -= stores the delta back as a position. probs better to drop or make it SubAssign LookDirection::new clamps x_rot but doesn't normalize y_rot,move norm into constructor was sens change to 0.15 intentional? eye pos is hardcoded so leaving note here to change in future for sneak ect partial_tick is bound twice in update_game |
Summary