Rebel Fork Framework
|
Bone of Model skeleton, unpacked for easy editing. More...
#include <Urho3D/Graphics/ModelView.h>
Public Member Functions | |
void | SetInitialTransform (const Vector3 &position, const Quaternion &rotation=Quaternion::IDENTITY, const Vector3 &scale=Vector3::ONE) |
Set initial bone transform. Doesn't change offset matrix. | |
void | RecalculateOffsetMatrix () |
Recalculate offset matrix from initial bone transform. | |
void | ResetBoundingVolume () |
Reset bounding volume. | |
void | SetLocalBoundingBox (const BoundingBox &boundingBox) |
Reset bounding volume to local bounding box. | |
void | SetLocalBoundingSphere (float radius) |
Reset bounding volume to local bounding sphere. | |
bool | operator== (const BoneView &rhs) const |
bool | operator!= (const BoneView &rhs) const |
Public Attributes | |
ea::string | name_ |
unsigned | parentIndex_ { M_MAX_UNSIGNED } |
Index of parent bone in the array. Should be undefined for exactly one root bone. | |
Vector3 | position_ |
Quaternion | rotation_ |
Vector3 | scale_ { Vector3::ONE } |
Matrix3x4 | offsetMatrix_ |
Inverted value of bone transform corresponding to default vertex position. | |
BoneCollisionShapeFlags | shapeFlags_ |
float | boundingSphereRadius_ {} |
BoundingBox | localBoundingBox_ |
Vector3 Urho3D::BoneView::position_ |
Initial bone transform
BoneCollisionShapeFlags Urho3D::BoneView::shapeFlags_ |
Bone dimensions for bounding box evaluation