Trait rhusics_core::CollisionData
source · 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> { ... }
}
Expand description
Collision data used for performing a full broad + narrow phase
Required Methods
sourcefn get_broad_data(&self) -> Vec<D>
fn get_broad_data(&self) -> Vec<D>
Get the list of data to perform broad phase on
sourcefn get_shape(&self, id: I) -> Option<&CollisionShape<P, T, B, Y>>
fn get_shape(&self, id: I) -> Option<&CollisionShape<P, T, B, Y>>
Get shape
sourcefn get_next_pose(&self, id: I) -> Option<&T>
fn get_next_pose(&self, id: I) -> Option<&T>
Get the next pose if possible
Provided Methods
sourcefn get_dirty_poses(&self) -> Vec<I>
fn get_dirty_poses(&self) -> Vec<I>
Get the dirty poses, used by tree broad phase