Enum JointConstraint
pub enum JointConstraint {
Unconstrained,
ConeLimit {
max_half_angle_rad: f32,
},
HingeLimit {
axis: [f32; 3],
min_angle_rad: f32,
max_angle_rad: f32,
},
SwingTwistCone(SwingTwistConeConstraint),
}Expand description
Angular constraint applied to a joint during solve_constrained_fabrik_motor_ik_zero_heap.
Variants§
Unconstrained
Full $SO(3)$ rotational freedom.
ConeLimit
Conical swing limit relative to the parent bone direction.
HingeLimit
Single-degree-of-freedom hinge rotation around axis (in parent/local space).
Fields
SwingTwistCone(SwingTwistConeConstraint)
Coupled elliptical/polygonal swing-twist cone constraint.
Trait Implementations§
§impl Clone for JointConstraint
impl Clone for JointConstraint
§fn clone(&self) -> JointConstraint
fn clone(&self) -> JointConstraint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for JointConstraint
§impl Debug for JointConstraint
impl Debug for JointConstraint
§impl Default for JointConstraint
impl Default for JointConstraint
§fn default() -> JointConstraint
fn default() -> JointConstraint
Returns the “default value” for a type. Read more
§impl PartialEq for JointConstraint
impl PartialEq for JointConstraint
impl StructuralPartialEq for JointConstraint
Auto Trait Implementations§
impl Freeze for JointConstraint
impl RefUnwindSafe for JointConstraint
impl Send for JointConstraint
impl Sync for JointConstraint
impl Unpin for JointConstraint
impl UnsafeUnpin for JointConstraint
impl UnwindSafe for JointConstraint
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