pub struct ChainShape {
pub id: i32,
pub body_id: i32,
pub next_chain_id: i32,
pub shape_indices: Vec<i32>,
pub materials: Vec<SurfaceMaterial>,
pub generation: u16,
}Expand description
Internal chain shape. (b2ChainShape)
The C int* shapeIndices / b2SurfaceMaterial* materials pointer+count
pairs are owned Vecs.
Fields§
§id: i32§body_id: i32§next_chain_id: i32§shape_indices: Vec<i32>§materials: Vec<SurfaceMaterial>§generation: u16Trait Implementations§
Source§impl Clone for ChainShape
impl Clone for ChainShape
Source§fn clone(&self) -> ChainShape
fn clone(&self) -> ChainShape
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 ChainShape
impl Debug for ChainShape
Source§impl Default for ChainShape
impl Default for ChainShape
Source§fn default() -> ChainShape
fn default() -> ChainShape
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ChainShape
impl RefUnwindSafe for ChainShape
impl Send for ChainShape
impl Sync for ChainShape
impl Unpin for ChainShape
impl UnsafeUnpin for ChainShape
impl UnwindSafe for ChainShape
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