pub struct Joint {
pub user_data: u64,
pub set_index: i32,
pub color_index: i32,
pub local_index: i32,
pub edges: [JointEdge; 2],
pub joint_id: i32,
pub island_id: i32,
pub island_index: i32,
pub draw_scale: f32,
pub type_: JointType,
pub generation: u16,
pub collide_connected: bool,
}Expand description
Map from JointId to joint data in the solver sets. (b3Joint)
Fields§
§user_data: u64§set_index: i32Index of simulation set stored in World. NULL_INDEX when slot is free.
color_index: i32Index into the constraint graph color array; may be NULL_INDEX for sleeping/disabled joints. NULL_INDEX when slot is free.
local_index: i32Joint index within set or graph color. NULL_INDEX when slot is free.
edges: [JointEdge; 2]§joint_id: i32§island_id: i32§island_index: i32Index into the island’s joints array for O(1) swap-removal. NULL_INDEX when not in an island.
draw_scale: f32§type_: JointType§generation: u16Monotonically advanced when a joint is allocated in this slot.
collide_connected: boolTrait Implementations§
Auto Trait Implementations§
impl Freeze for Joint
impl RefUnwindSafe for Joint
impl Send for Joint
impl Sync for Joint
impl Unpin for Joint
impl UnsafeUnpin for Joint
impl UnwindSafe for Joint
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