BonePose class
The applied pose for a bone. This is the Bone pose with constraints applied and the world transform computed by Skeleton::updateWorldTransform(Physics).
- Inheritance
- Implemented types
- Available extensions
Constructors
- BonePose()
-
factory
-
BonePose.fromPointer(Pointer<
spine_bone_pose_wrapper> _ptr)
Properties
- a ↔ double
-
Part of the world transform matrix for the X axis. If changed,
updateLocalTransform() should be called.
getter/setter pair
- b ↔ double
-
Part of the world transform matrix for the Y axis. If changed,
updateLocalTransform() should be called.
getter/setter pair
- c ↔ double
-
Part of the world transform matrix for the X axis. If changed,
updateLocalTransform() should be called.
getter/setter pair
- d ↔ double
-
Part of the world transform matrix for the Y axis. If changed,
updateLocalTransform() should be called.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- inherit ↔ Inherit
-
Determines how parent world transforms affect this bone.
getter/setter pairinherited
-
nativePtr
→ Pointer<
NativeType> -
Get the native pointer for FFI calls
no setteroverride
- rotation ↔ double
-
The local rotation in degrees, counter clockwise.
getter/setter pairinherited
- rtti → Rtti
-
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scale2 ← double
-
no getterinherited
- scaleX ↔ double
-
The local scaleX.
getter/setter pairinherited
- scaleY ↔ double
-
The local scaleY.
getter/setter pairinherited
- shearX ↔ double
-
The local shearX.
getter/setter pairinherited
- shearY ↔ double
-
The local shearY.
getter/setter pairinherited
- worldRotationX → double
-
The world rotation for the X axis, calculated using a and c.
no setter
- worldRotationY → double
-
The world rotation for the Y axis, calculated using b and d.
no setter
- worldScaleX → double
-
The magnitude (always positive) of the world scale X, calculated using a
and c.
no setter
- worldScaleY → double
-
The magnitude (always positive) of the world scale Y, calculated using b
and d.
no setter
- worldX ↔ double
-
The world X position. If changed, updateLocalTransform() should be called.
getter/setter pair
- worldY ↔ double
-
The world Y position. If changed, updateLocalTransform() should be called.
getter/setter pair
- x ↔ double
-
The local x translation.
getter/setter pairinherited
- y ↔ double
-
The local y translation.
getter/setter pairinherited
Methods
-
dispose(
) → void -
override
-
localToWorld(
double localX, double localY) → Vector -
Available on BonePose, provided by the BonePoseExtensions extension
-
localToWorldRotation(
double localRotation) → double - Transforms a local rotation to a world rotation.
-
modifyLocal(
Skeleton skeleton) → void -
modifyWorld(
int update) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parentToWorld(
double parentX, double parentY) → Vector -
Available on BonePose, provided by the BonePoseExtensions extension
-
resetWorld(
int update) → void -
rotateWorld(
double degrees) → void - Rotates the world transform the specified amount.
-
set(
BoneLocal pose) → void -
inherited
-
setPosition(
double x, double y) → void -
inherited
-
setScale(
double scaleX, double scaleY) → void -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
Skeleton skeleton, Physics physics) → void -
Called by Skeleton::updateCache() to compute the world transform, if
needed.
override
-
updateLocalTransform(
Skeleton skeleton) → void - Computes the local transform values from the world transform.
-
updateWorldTransform(
Skeleton skeleton) → void - Computes the world transform using the parent bone's applied pose and this pose. Child bones are not updated.
-
validateLocalTransform(
Skeleton skeleton) → void - If the world transform has been modified and the local transform no longer matches, updateLocalTransform() is called.
-
worldToLocal(
double worldX, double worldY) → Vector -
Available on BonePose, provided by the BonePoseExtensions extension
-
worldToLocalRotation(
double worldRotation) → double - Transforms a world rotation to a local rotation.
-
worldToParent(
double worldX, double worldY) → Vector -
Available on BonePose, provided by the BonePoseExtensions extension
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
rttiStatic(
) → Rtti -
override