Skip to main content

oxiphysics_core/world/
physicsworld_traits.rs

1#[allow(unused_imports)]
2use super::functions::*;
3// # PhysicsWorld - Trait Implementations
4//
5// This module contains trait implementations for `PhysicsWorld`.
6//
7// ## Implemented Traits
8//
9// - `Default`
10//
11// 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
12
13use crate::types::PhysicsConfig;
14use std::collections::VecDeque;
15
16use super::types::{BodyArena, PhysicsWorld};
17
18impl Default for PhysicsWorld {
19    fn default() -> Self {
20        Self {
21            time: 0.0,
22            config: PhysicsConfig::default(),
23            fixed_dt: 1.0 / 60.0,
24            accumulator: 0.0,
25            bodies: BodyArena::new(),
26            constraints: Vec::new(),
27            events: VecDeque::new(),
28            islands: Vec::new(),
29            max_events: 1024,
30        }
31    }
32}