pub struct Spring {
pub center: Option<Index<Node>>,
pub collider_groups: Option<Vec<i64>>,
pub extensions: Option<FxHashMap<String, FxHashMap<String, Option<Value>>>>,
pub extras: Option<Value>,
pub joints: Vec<SpringBoneJoint>,
pub name: Option<String>,
}Expand description
A bone group of VRMCSpringBone.
Fields§
§center: Option<Index<Node>>An index of node which is used as a root of center space.
collider_groups: Option<Vec<i64>>Indices of ColliderGroups that detect collision with this spring.
extensions: Option<FxHashMap<String, FxHashMap<String, Option<Value>>>>§extras: Option<Value>§joints: Vec<SpringBoneJoint>Joints of the spring. Except for the first element, a previous joint of the array must be an ancestor of the joint.
name: Option<String>Name of the Spring
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Spring
impl<'de> Deserialize<'de> for Spring
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 Spring
impl RefUnwindSafe for Spring
impl Send for Spring
impl Sync for Spring
impl Unpin for Spring
impl UnsafeUnpin for Spring
impl UnwindSafe for Spring
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