[][src]Struct rg3d_physics::rigid_body::RigidBody

pub struct RigidBody {
    pub user_flags: u64,
    pub collision_group: u64,
    pub collision_mask: u64,
    pub collision_flags: CollisionFlags,
    // some fields omitted
}

Fields

user_flags: u64collision_group: u64collision_mask: u64collision_flags: CollisionFlags

Implementations

impl RigidBody[src]

pub fn new(shape: ConvexShape) -> Self[src]

pub fn get_position(&self) -> Vec3[src]

pub fn set_position(&mut self, p: Vec3) -> &mut Self[src]

pub fn move_by(&mut self, v: Vec3) -> &mut Self[src]

pub fn offset_by(&mut self, v: Vec3) -> &mut Self[src]

pub fn set_shape(&mut self, shape: ConvexShape) -> &mut Self[src]

pub fn get_shape(&self) -> &ConvexShape[src]

pub fn get_shape_mut(&mut self) -> &mut ConvexShape[src]

pub fn set_friction(&mut self, friction: Vec3) -> &mut Self[src]

pub fn get_friction(&self) -> Vec3[src]

pub fn set_x_velocity(&mut self, x: f32) -> &mut Self[src]

pub fn set_y_velocity(&mut self, y: f32) -> &mut Self[src]

pub fn set_z_velocity(&mut self, z: f32) -> &mut Self[src]

pub fn set_velocity(&mut self, v: Vec3) -> &mut Self[src]

pub fn get_velocity(&self) -> Vec3[src]

pub fn get_contacts(&self) -> &[Contact][src]

pub fn set_gravity(&mut self, gravity: Vec3) -> &mut Self[src]

pub fn get_gravity(&self) -> Vec3[src]

pub fn set_lifetime(&mut self, time_seconds: f32) -> &mut Self[src]

pub fn get_lifetime(&self) -> Option<f32>[src]

pub fn verlet(&mut self, sqr_delta_time: f32, air_friction: f32)[src]

pub fn solve_triangle_collision(
    &mut self,
    triangle: &StaticTriangle,
    triangle_index: usize,
    static_geom: Handle<StaticGeometry>
)
[src]

pub fn solve_rigid_body_collision(
    &mut self,
    self_handle: Handle<RigidBody>,
    other: &mut Self,
    other_handle: Handle<RigidBody>
)
[src]

Trait Implementations

impl Clone for RigidBody[src]

impl Debug for RigidBody[src]

impl Default for RigidBody[src]

impl Visit for RigidBody[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Visit for T where
    T: FieldData + 'static, 
[src]