pub struct Bone {
pub body_id: BodyId,
pub joint_id: JointId,
pub anchor_id: BodyId,
pub anchor_joint_id: JointId,
pub local_frame_a: Transform,
pub local_frame_b: Transform,
pub reference_frame: Transform,
pub joint_type: JointType,
pub swing_limit: f32,
pub twist_limit: Vec2,
pub joint_friction: f32,
pub parent_index: i32,
}Expand description
One bone of a human ragdoll. (Bone)
Fields§
§body_id: BodyId§joint_id: JointId§anchor_id: BodyId§anchor_joint_id: JointId§local_frame_a: Transform§local_frame_b: Transform§reference_frame: Transform§joint_type: JointType§swing_limit: f32§twist_limit: Vec2§joint_friction: f32§parent_index: i32Trait Implementations§
Auto Trait Implementations§
impl Freeze for Bone
impl RefUnwindSafe for Bone
impl Send for Bone
impl Sync for Bone
impl Unpin for Bone
impl UnsafeUnpin for Bone
impl UnwindSafe for Bone
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