pub struct RigidBodyDesc {
pub position: Vec3,
pub rotation: Quat,
pub body_type: BodyType,
pub linear_velocity: Vec3,
pub angular_velocity: Vec3,
pub mass: f32,
pub ccd_enabled: bool,
}Expand description
Description for creating a rigid body.
Fields§
§position: Vec3Initial position.
rotation: QuatInitial rotation.
body_type: BodyTypeBody type.
linear_velocity: Vec3Linear velocity.
angular_velocity: Vec3Angular velocity.
mass: f32Mass of the body in kilograms.
ccd_enabled: boolWhether to enable Continuous Collision Detection (CCD).
Trait Implementations§
Source§impl Clone for RigidBodyDesc
impl Clone for RigidBodyDesc
Source§fn clone(&self) -> RigidBodyDesc
fn clone(&self) -> RigidBodyDesc
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RigidBodyDesc
impl Debug for RigidBodyDesc
Source§impl<'de> Deserialize<'de> for RigidBodyDesc
impl<'de> Deserialize<'de> for RigidBodyDesc
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RigidBodyDesc
impl RefUnwindSafe for RigidBodyDesc
impl Send for RigidBodyDesc
impl Sync for RigidBodyDesc
impl Unpin for RigidBodyDesc
impl UnwindSafe for RigidBodyDesc
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more