Struct chipmunk_rs::CircleShape
[−]
[src]
pub struct CircleShape<T: ChipmunkRsTypes> { /* fields omitted */ }
A CircleShape. See Working With Circle Shapes
Methods
impl<T: ChipmunkRsTypes> CircleShape<T>
[src]
fn new(body: BodyHandle<T>, radius: f64, offset: T::Vect) -> CircleShape<T>
Create a new circle shape. See Working With Circle Shapes
fn offset(&self) -> T::Vect
fn radius(&self) -> f64
Trait Implementations
impl<T: ChipmunkRsTypes> Drop for CircleShape<T>
[src]
impl<T: ChipmunkRsTypes> BaseShape for CircleShape<T>
[src]
impl<T: ChipmunkRsTypes> Shape<T> for CircleShape<T>
[src]
fn body(&self) -> BodyHandle<T>
Get the body attached to the shape.
fn elasticity(&self) -> f64
See Chipmunk Collision Shapes.
fn friction(&self) -> f64
See Chipmunk Collision Shapes.
fn set_body(&mut self, body: Body<T>)
See Chipmunk Collision Shapes.
fn set_elasticity(&mut self, value: f64)
See Chipmunk Collision Shapes.
fn set_friction(&mut self, value: f64)
See Chipmunk Collision Shapes.