pub struct PhysicsBudgetRecord {
pub fixed: u32,
pub dynamic: u32,
pub kinematic: u32,
pub sensors: u32,
pub joints: u32,
pub anchors: u32,
pub spawn_headroom: u32,
}Expand description
The bodies a world’s physics reserves, counted by cook from the authored content and grouped by the kind of body the simulation builds for it. The runtime reserves exactly this at load and refuses to exceed it; debug builds re-derive it from the loaded components and assert the two agree.
A plain record on purpose: this crate is the container format and knows nothing about simulation, so the conversion to and from the simulation’s own budget type lives with the driver that reads it.
Fields§
§fixed: u32Immovable bodies: the world’s static colliders plus its floor.
dynamic: u32Freely simulated bodies.
kinematic: u32Position-driven bodies: the player capsule and the character rigs.
sensors: u32Sensor bodies, one per trigger volume.
joints: u32Joints connecting two bodies.
anchors: u32Hidden static bodies minted to anchor a world-anchored joint.
spawn_headroom: u32Bodies held back for props created after load.
Trait Implementations§
Source§impl Clone for PhysicsBudgetRecord
impl Clone for PhysicsBudgetRecord
Source§fn clone(&self) -> PhysicsBudgetRecord
fn clone(&self) -> PhysicsBudgetRecord
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for PhysicsBudgetRecord
Source§impl Debug for PhysicsBudgetRecord
impl Debug for PhysicsBudgetRecord
Source§impl Default for PhysicsBudgetRecord
impl Default for PhysicsBudgetRecord
Source§fn default() -> PhysicsBudgetRecord
fn default() -> PhysicsBudgetRecord
Source§impl<'de> Deserialize<'de> for PhysicsBudgetRecord
impl<'de> Deserialize<'de> for PhysicsBudgetRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for PhysicsBudgetRecord
Source§impl PartialEq for PhysicsBudgetRecord
impl PartialEq for PhysicsBudgetRecord
Source§impl Serialize for PhysicsBudgetRecord
impl Serialize for PhysicsBudgetRecord
impl StructuralPartialEq for PhysicsBudgetRecord
Auto Trait Implementations§
impl Freeze for PhysicsBudgetRecord
impl RefUnwindSafe for PhysicsBudgetRecord
impl Send for PhysicsBudgetRecord
impl Sync for PhysicsBudgetRecord
impl Unpin for PhysicsBudgetRecord
impl UnsafeUnpin for PhysicsBudgetRecord
impl UnwindSafe for PhysicsBudgetRecord
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.