Struct ncollide2d::world::CollisionObject [−][src]
pub struct CollisionObject<N: Real, T> { /* fields omitted */ }
A stand-alone object that has a position and a shape.
Methods
impl<N: Real, T> CollisionObject<N, T>
[src]
impl<N: Real, T> CollisionObject<N, T>
pub fn new(
handle: CollisionObjectHandle,
proxy_handle: ProxyHandle,
position: Isometry<N>,
shape: ShapeHandle<N>,
groups: CollisionGroups,
query_type: GeometricQueryType<N>,
data: T
) -> CollisionObject<N, T>
[src]
pub fn new(
handle: CollisionObjectHandle,
proxy_handle: ProxyHandle,
position: Isometry<N>,
shape: ShapeHandle<N>,
groups: CollisionGroups,
query_type: GeometricQueryType<N>,
data: T
) -> CollisionObject<N, T>
Creates a new collision object.
pub fn handle(&self) -> CollisionObjectHandle
[src]
pub fn handle(&self) -> CollisionObjectHandle
The collision object unique handle.
pub fn proxy_handle(&self) -> ProxyHandle
[src]
pub fn proxy_handle(&self) -> ProxyHandle
The collision object's broad phase proxy unique identifier.
pub fn position(&self) -> &Isometry<N>
[src]
pub fn position(&self) -> &Isometry<N>
The collision object position.
pub fn set_position(&mut self, pos: Isometry<N>)
[src]
pub fn set_position(&mut self, pos: Isometry<N>)
Sets the position of the collision object.
pub fn shape(&self) -> &ShapeHandle<N>
[src]
pub fn shape(&self) -> &ShapeHandle<N>
The collision object shape.
pub fn collision_groups(&self) -> &CollisionGroups
[src]
pub fn collision_groups(&self) -> &CollisionGroups
The collision groups of the collision object.
pub fn query_type(&self) -> GeometricQueryType<N>
[src]
pub fn query_type(&self) -> GeometricQueryType<N>
The kind of queries this collision object is expected to .
pub fn data(&self) -> &T
[src]
pub fn data(&self) -> &T
Reference to the user-defined data associated to this object.
pub fn data_mut(&mut self) -> &mut T
[src]
pub fn data_mut(&mut self) -> &mut T
Mutable reference to the user-defined data associated to this object.
Auto Trait Implementations
impl<N, T> Send for CollisionObject<N, T> where
T: Send,
impl<N, T> Send for CollisionObject<N, T> where
T: Send,
impl<N, T> Sync for CollisionObject<N, T> where
T: Sync,
impl<N, T> Sync for CollisionObject<N, T> where
T: Sync,