Struct rusty_spine::PhysicsConstraintData
source · pub struct PhysicsConstraintData { /* private fields */ }
Expand description
Stores the setup pose for a PhysicsConstraint
.
Implementations§
source§impl PhysicsConstraintData
impl PhysicsConstraintData
sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
The constraint’s name, which is unique across all constraints in the skeleton of the same type.
sourcepub fn order(&self) -> i32
pub fn order(&self) -> i32
The ordinal of this constraint for the order a skeleton’s constraints will be applied by
Skeleton::update_world_transform
.
sourcepub fn skin_required(&self) -> bool
pub fn skin_required(&self) -> bool
When true,
Skeleton::update_world_transform
only
updates this constraint if the skin contains this constraint.
pub fn damping(&self) -> f32
pub fn damping_global(&self) -> bool
pub fn gravity(&self) -> f32
pub fn gravity_global(&self) -> bool
pub fn inertia(&self) -> f32
pub fn inertia_global(&self) -> bool
pub fn limit(&self) -> f32
pub fn mass_global(&self) -> bool
pub fn mass_inverse(&self) -> f32
sourcepub fn mix(&self) -> f32
pub fn mix(&self) -> f32
A percentage (0-1) that controls the mix between the constrained and unconstrained poses.
pub fn mix_global(&self) -> bool
pub fn rotate(&self) -> f32
pub fn scale_x(&self) -> f32
pub fn shear_x(&self) -> f32
pub fn step(&self) -> f32
pub fn strength(&self) -> f32
pub fn strength_global(&self) -> bool
pub fn wind(&self) -> f32
pub fn wind_global(&self) -> bool
pub fn x(&self) -> f32
pub fn y(&self) -> f32
sourcepub fn bone(&self) -> CTmpRef<'_, Self, BoneData>
pub fn bone(&self) -> CTmpRef<'_, Self, BoneData>
The bone constrained by this physics constraint.
sourcepub const fn c_ptr(&self) -> *mut spPhysicsConstraintData
pub const fn c_ptr(&self) -> *mut spPhysicsConstraintData
Get a pointer to the underlying spine-c
type.
Trait Implementations§
source§impl Debug for PhysicsConstraintData
impl Debug for PhysicsConstraintData
source§impl NewFromPtr<spPhysicsConstraintData> for PhysicsConstraintData
impl NewFromPtr<spPhysicsConstraintData> for PhysicsConstraintData
unsafe fn new_from_ptr(c_slot: *mut spPhysicsConstraintData) -> Self
Auto Trait Implementations§
impl Freeze for PhysicsConstraintData
impl RefUnwindSafe for PhysicsConstraintData
impl Send for PhysicsConstraintData
impl Sync for PhysicsConstraintData
impl Unpin for PhysicsConstraintData
impl UnwindSafe for PhysicsConstraintData
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