Struct catchit::Object
[−]
[src]
pub struct Object {
pub pos: Position,
pub half_size: Pt,
pub shape: CollisionShape,
}A game object which knows a few things about itself
Fields
pos | |
half_size | |
shape |
Methods
impl Object
fn left(&self) -> Scalar
fn right(&self) -> Scalar
fn top(&self) -> Scalar
fn bottom(&self) -> Scalar
fn intersects(&self, other: &Object) -> bool
Returns true if both objects intersect