Trait heron::rapier_plugin::rapier::ncollide::pipeline::object::CollisionObjectRef[][src]

pub trait CollisionObjectRef<N> where
    N: RealField
{ pub fn graph_index(&self) -> Option<NodeIndex<usize>>;
pub fn proxy_handle(&self) -> Option<BroadPhaseProxyHandle>;
pub fn position(&self) -> &Isometry<N, U3, Unit<Quaternion<N>>>;
pub fn predicted_position(
        &self
    ) -> Option<&Isometry<N, U3, Unit<Quaternion<N>>>>;
pub fn shape(&self) -> &(dyn Shape<N> + 'static);
pub fn collision_groups(&self) -> &CollisionGroups;
pub fn query_type(&self) -> GeometricQueryType<N>;
pub fn update_flags(&self) -> CollisionObjectUpdateFlags; pub fn compute_aabb(&self) -> AABB<N> { ... }
pub fn compute_swept_aabb(&self) -> AABB<N> { ... } }

Trait implemented by collision objects.

Required methods

pub fn graph_index(&self) -> Option<NodeIndex<usize>>[src]

The interaction graph index of this collision object, if it has been registered into an interaction graph.

Se the glue::create_proxies for more details.

pub fn proxy_handle(&self) -> Option<BroadPhaseProxyHandle>[src]

The broad-phase proxy handle of this collision object, if it has been registered into a broad-phase.

Se the glue::create_proxies for more details.

pub fn position(&self) -> &Isometry<N, U3, Unit<Quaternion<N>>>[src]

The position of this collision object.

pub fn predicted_position(
    &self
) -> Option<&Isometry<N, U3, Unit<Quaternion<N>>>>
[src]

The expected position of this collision object in the next updates.

This is used to enlarge the collision object bounding volume such that at yields more potential interaction pairs. This is typically needed for CCD (continuous collision detection) to be sure the broad-phase does not miss pential interactions in-between two discontinuous positions of the collision object.

pub fn shape(&self) -> &(dyn Shape<N> + 'static)[src]

The shape of this collision object.

pub fn collision_groups(&self) -> &CollisionGroups[src]

The collision groups of this collision object.

pub fn query_type(&self) -> GeometricQueryType<N>[src]

The type of geometric queries this collision object is subjected to.

pub fn update_flags(&self) -> CollisionObjectUpdateFlags[src]

Flags indicating what changed in this collision object.

Loading content...

Provided methods

pub fn compute_aabb(&self) -> AABB<N>[src]

Computes the AABB of this collision object, ignoring self.predicted_position().

pub fn compute_swept_aabb(&self) -> AABB<N>[src]

Computes the swept AABB of this collision object, taking self.predict_position() into account.

Given the AABB of this collision object at the position self.position()’, and the AABB of this collision object at the position self.predicted_position()`, this returns an AABB that bounds both.

Loading content...

Implementors

impl<N, T> CollisionObjectRef<N> for CollisionObject<N, T> where
    N: RealField
[src]

Loading content...