pub struct Joints {
pub inputs: Vec<Input>,
pub joint: usize,
pub extra: Vec<Extra>,
}
Expand description
Declares the association between joint nodes and attribute data.
Fields§
§inputs: Vec<Input>
The interpretation of the Source
s.
joint: usize
The index into inputs
for the Semantic::Joint
input (which must exist).
The Source
referenced by this input should contain a ArrayElement::Name
that contains sid
s to identify the joint nodes.
sid
s are used instead of IdRef
s to allow a skin controller
to be instantiated multiple times, where each instance can be animated independently.
extra: Vec<Extra>
Provides arbitrary additional information about this element.
Implementations§
Source§impl Joints
impl Joints
Sourcepub fn new(inputs: Vec<Input>) -> Self
pub fn new(inputs: Vec<Input>) -> Self
Construct a new Joints
from a list of inputs.
One of the inputs must have Semantic::Joint
.
Source§impl Joints
impl Joints
Sourcepub fn joint_input(&self) -> &Input
pub fn joint_input(&self) -> &Input
The input with Semantic::Joint
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Joints
impl RefUnwindSafe for Joints
impl Send for Joints
impl Sync for Joints
impl Unpin for Joints
impl UnwindSafe for Joints
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