pub struct PhysicsMaterial {
pub id: Option<String>,
pub name: Option<String>,
pub asset: Option<Box<Asset>>,
pub common: PhysicsMaterialCommon,
pub technique: Vec<Technique>,
pub extra: Vec<Extra>,
}
Expand description
Defines the physical properties of an object.
It contains a technique/profile with parameters.
The COMMON
profile defines the built-in names, such as static_friction
.
Fields§
§id: Option<String>
A text string containing the unique identifier of the element.
name: Option<String>
The text string name of this element.
asset: Option<Box<Asset>>
Asset management information about this element.
common: PhysicsMaterialCommon
Specifies physics-material information for the common profile that all COLLADA implementations must support.
technique: Vec<Technique>
Declares the information used to process some portion of the content. (optional)
extra: Vec<Extra>
Provides arbitrary additional information about this element.
Implementations§
Trait Implementations§
Source§impl Clone for PhysicsMaterial
impl Clone for PhysicsMaterial
Source§fn clone(&self) -> PhysicsMaterial
fn clone(&self) -> PhysicsMaterial
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 PhysicsMaterial
impl Debug for PhysicsMaterial
Source§impl Default for PhysicsMaterial
impl Default for PhysicsMaterial
Source§fn default() -> PhysicsMaterial
fn default() -> PhysicsMaterial
Returns the “default value” for a type. Read more
Source§impl HasId for PhysicsMaterial
impl HasId for PhysicsMaterial
Source§impl ParseLibrary for PhysicsMaterial
impl ParseLibrary for PhysicsMaterial
Source§fn extract_element(e: &LibraryElement) -> Option<&Library<Self>>
fn extract_element(e: &LibraryElement) -> Option<&Library<Self>>
Extract the library from a single
LibraryElement
.Source§fn mk_element(lib: Library<Self>) -> LibraryElement
fn mk_element(lib: Library<Self>) -> LibraryElement
Make a
LibraryElement
from a Library
.Source§impl Traversable for PhysicsMaterial
impl Traversable for PhysicsMaterial
Auto Trait Implementations§
impl Freeze for PhysicsMaterial
impl RefUnwindSafe for PhysicsMaterial
impl Send for PhysicsMaterial
impl Sync for PhysicsMaterial
impl Unpin for PhysicsMaterial
impl UnwindSafe for PhysicsMaterial
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