Struct dae_parser::PhysicsSceneCommon
source · 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