Skip to content

Commit

Permalink
Change to quaternion rotation for json deserialization
Browse files Browse the repository at this point in the history
  • Loading branch information
dbierek committed Sep 16, 2024
1 parent 36fe7a9 commit c62f900
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/json_serde/entities_json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,10 @@ pub struct Vec3 {
#[derive(Debug, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Rotation {
pub yaw: f64,
pub pitch: f64,
pub roll: f64,
pub x: f64,
pub y: f64,
pub z: f64,
pub w: f64,
}

#[derive(Debug, Serialize, Deserialize)]
Expand Down

0 comments on commit c62f900

Please sign in to comment.