pub struct CompoundData {Show 21 fields
pub version: u64,
pub byte_count: i32,
pub node_offset: i32,
pub tree: DynamicTree,
pub material_offset: i32,
pub material_count: i32,
pub capsule_offset: i32,
pub capsule_count: i32,
pub hull_offset: i32,
pub hull_count: i32,
pub shared_hull_count: i32,
pub mesh_offset: i32,
pub mesh_count: i32,
pub shared_mesh_count: i32,
pub sphere_offset: i32,
pub sphere_count: i32,
pub materials: Vec<SurfaceMaterial>,
pub capsules: Vec<CompoundCapsule>,
pub shared_hulls: Vec<HullData>,
pub shared_meshes: Vec<MeshData>,
pub spheres: Vec<CompoundSphere>,
/* private fields */
}Expand description
The runtime data for a baked compound shape. (b3CompoundData)
Owned arrays replace C’s trailing-blob offsets. Offsets are retained so
CompoundData::to_bytes / from_bytes
reproduce the contiguous layout.
Fields§
§version: u64§byte_count: i32§node_offset: i32§tree: DynamicTree§material_offset: i32§material_count: i32§capsule_offset: i32§capsule_count: i32§hull_offset: i32§hull_count: i32§mesh_offset: i32§mesh_count: i32§sphere_offset: i32§sphere_count: i32§materials: Vec<SurfaceMaterial>§capsules: Vec<CompoundCapsule>§spheres: Vec<CompoundSphere>Implementations§
Trait Implementations§
Source§impl Clone for CompoundData
impl Clone for CompoundData
Source§fn clone(&self) -> CompoundData
fn clone(&self) -> CompoundData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompoundData
impl Debug for CompoundData
Auto Trait Implementations§
impl Freeze for CompoundData
impl RefUnwindSafe for CompoundData
impl Send for CompoundData
impl Sync for CompoundData
impl Unpin for CompoundData
impl UnsafeUnpin for CompoundData
impl UnwindSafe for CompoundData
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
Mutably borrows from an owned value. Read more