oxiphysics_io/gltf/joint_traits.rs
1//! # Joint - Trait Implementations
2//!
3//! This module contains trait implementations for `Joint`.
4//!
5//! ## Implemented Traits
6//!
7//! - `Default`
8//!
9//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
10
11#[allow(unused_imports)]
12use super::functions::*;
13use super::types::Joint;
14
15impl Default for Joint {
16 fn default() -> Self {
17 let mut ibm = [0.0f32; 16];
18 ibm[0] = 1.0;
19 ibm[5] = 1.0;
20 ibm[10] = 1.0;
21 ibm[15] = 1.0;
22 Joint {
23 name: String::new(),
24 translation: [0.0, 0.0, 0.0],
25 rotation: [0.0, 0.0, 0.0, 1.0],
26 scale: [1.0, 1.0, 1.0],
27 children: Vec::new(),
28 inverse_bind_matrix: ibm,
29 }
30 }
31}