[−][src]Struct rg3d_physics::rigid_body::RigidBody
Fields
user_flags: u64
collision_group: u64
collision_mask: u64
collision_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]
&mut self,
triangle: &StaticTriangle,
triangle_index: usize,
static_geom: Handle<StaticGeometry>
)
pub fn solve_rigid_body_collision(
&mut self,
self_handle: Handle<RigidBody>,
other: &mut Self,
other_handle: Handle<RigidBody>
)
[src]
&mut self,
self_handle: Handle<RigidBody>,
other: &mut Self,
other_handle: Handle<RigidBody>
)
Trait Implementations
impl Clone for RigidBody
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for RigidBody
[src]
impl Default for RigidBody
[src]
impl Visit for RigidBody
[src]
fn visit(&mut self, name: &str, visitor: &mut Visitor) -> VisitResult
[src]
Auto Trait Implementations
impl RefUnwindSafe for RigidBody
impl Send for RigidBody
impl Sync for RigidBody
impl Unpin for RigidBody
impl UnwindSafe for RigidBody
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> Visit for T where
T: FieldData + 'static,
[src]
T: FieldData + 'static,