Struct rhusics_core::RigidBody [−][src]
pub struct RigidBody<S> { /* fields omitted */ }
Rigid body
Methods
impl<S> RigidBody<S> where
S: BaseFloat,
[src]
impl<S> RigidBody<S> where
S: BaseFloat,
pub fn new(material: Material, gravity_scale: S) -> Self
[src]
pub fn new(material: Material, gravity_scale: S) -> Self
Create new rigid body
pub fn material(&self) -> &Material
[src]
pub fn material(&self) -> &Material
Get material
pub fn gravity_scale(&self) -> S
[src]
pub fn gravity_scale(&self) -> S
Get gravity scale
Trait Implementations
impl<S: Debug> Debug for RigidBody<S>
[src]
impl<S: Debug> Debug for RigidBody<S>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<S> Default for RigidBody<S> where
S: BaseFloat,
[src]
impl<S> Default for RigidBody<S> where
S: BaseFloat,