pub struct ChainShape { /* private fields */ }
Implementations§
source§impl ChainShape
impl ChainShape
pub fn new() -> Self
pub fn new_loop(vertices: &[Vec2]) -> Self
pub fn new_chain(vertices: &[Vec2]) -> Self
pub fn clear(&mut self)
pub fn create_loop(&mut self, vertices: &[Vec2])
pub fn create_chain(&mut self, vertices: &[Vec2])
pub fn vertices(&self) -> &[Vec2]
pub fn prev_vertex(&self) -> Option<Vec2>
pub fn set_prev_vertex(&mut self, v: Option<Vec2>)
pub fn next_vertex(&self) -> Option<Vec2>
pub fn set_next_vertex(&mut self, v: Option<Vec2>)
pub fn child_edge(&self, index: i32) -> EdgeShape
Trait Implementations§
source§impl Drop for ChainShape
impl Drop for ChainShape
source§impl Shape for ChainShape
impl Shape for ChainShape
fn shape_type(&self) -> ShapeType
fn child_count(&self) -> i32
fn test_point(&self, xf: &Transform, p: &Vec2) -> bool
fn ray_cast( &self, input: &RayCastInput, transform: &Transform, child_index: i32 ) -> RayCastOutput
fn compute_aabb(&self, xf: &Transform, child_index: i32) -> AABB
fn compute_mass(&self, density: f32) -> MassData
Auto Trait Implementations§
impl RefUnwindSafe for ChainShape
impl !Send for ChainShape
impl !Sync for ChainShape
impl Unpin 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