pub struct ChainSegment {
pub ghost1: Vec2,
pub segment: Segment,
pub ghost2: Vec2,
pub chain_id: i32,
}Expand description
A line segment with one-sided collision. Only collides on the right side. Several of these are generated for a chain shape. ghost1 -> point1 -> point2 -> ghost2. (b2ChainSegment)
Fields§
§ghost1: Vec2The tail ghost vertex
segment: SegmentThe line segment
ghost2: Vec2The head ghost vertex
chain_id: i32The owning chain shape index (internal usage only)
Trait Implementations§
Source§impl Clone for ChainSegment
impl Clone for ChainSegment
Source§fn clone(&self) -> ChainSegment
fn clone(&self) -> ChainSegment
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 moreimpl Copy for ChainSegment
Source§impl Debug for ChainSegment
impl Debug for ChainSegment
Source§impl Default for ChainSegment
impl Default for ChainSegment
Source§fn default() -> ChainSegment
fn default() -> ChainSegment
Returns the “default value” for a type. Read more
Source§impl PartialEq for ChainSegment
impl PartialEq for ChainSegment
impl StructuralPartialEq for ChainSegment
Auto Trait Implementations§
impl Freeze for ChainSegment
impl RefUnwindSafe for ChainSegment
impl Send for ChainSegment
impl Sync for ChainSegment
impl Unpin for ChainSegment
impl UnsafeUnpin for ChainSegment
impl UnwindSafe for ChainSegment
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