pub struct PhysicsSceneCommon {
pub gravity: Option<Box<[f32; 3]>>,
pub time_step: Option<f32>,
}
Expand description
Specifies physics-scene information for the common profile that all COLLADA implementations must support.
Fields§
§gravity: Option<Box<[f32; 3]>>
A vector representation of the scene’s gravity force field. It is given as a denormalized direction vector of three floating-point values that indicate both the magnitude and direction of acceleration caused by the field.
time_step: Option<f32>
The integration time step, measured in seconds, of the physics scene. This value is engine-specific. If omitted, the physics engine’s default is used.
Implementations§
Trait Implementations§
Source§impl Clone for PhysicsSceneCommon
impl Clone for PhysicsSceneCommon
Source§fn clone(&self) -> PhysicsSceneCommon
fn clone(&self) -> PhysicsSceneCommon
Returns a copy 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 PhysicsSceneCommon
impl Debug for PhysicsSceneCommon
Source§impl Default for PhysicsSceneCommon
impl Default for PhysicsSceneCommon
Source§fn default() -> PhysicsSceneCommon
fn default() -> PhysicsSceneCommon
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PhysicsSceneCommon
impl RefUnwindSafe for PhysicsSceneCommon
impl Send for PhysicsSceneCommon
impl Sync for PhysicsSceneCommon
impl Unpin for PhysicsSceneCommon
impl UnwindSafe for PhysicsSceneCommon
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