Trait rhusics_core::CollisionData [−][src]
pub trait CollisionData<I, P, T, B, Y, D> where
P: Primitive, { fn get_broad_data(&self) -> Vec<D>; fn get_shape(&self, id: I) -> Option<&CollisionShape<P, T, B, Y>>; fn get_pose(&self, id: I) -> Option<&T>; fn get_next_pose(&self, id: I) -> Option<&T>; fn get_dirty_poses(&self) -> Vec<I> { ... } }
Collision data used for performing a full broad + narrow phase
Required Methods
fn get_broad_data(&self) -> Vec<D>
Get the list of data to perform broad phase on
fn get_shape(&self, id: I) -> Option<&CollisionShape<P, T, B, Y>>
Get shape
fn get_pose(&self, id: I) -> Option<&T>
Get pose
fn get_next_pose(&self, id: I) -> Option<&T>
Get the next pose if possible
Provided Methods
fn get_dirty_poses(&self) -> Vec<I>
Get the dirty poses, used by tree broad phase