BoneHelper
BoneHelper ⟵ Object3D
A helper class for visualizing bones with wireframe cone geometry and
lines.
BoneHelper creates a visual representation of a bone using:
- Wireframe cone geometry with 4 sides for clear direction indication
- Color coding for different bone types
Methods
BoneHelper(Bone* bone, f32 size, const Color& color)
Constructor with bone and visualization parameters
| bone | Bone to visualize | nullptr |
| size | Size of the cone | 0.5f |
| color | Color of the bone helper | 0x00FF00FF |
void setBone(Bone* bone)
Sets the bone to visualize
| bone | Bone to visualize |
Bone* getBone() const
Gets the bone being visualized
void setSize(f32 size)
Sets the size of the octahedron
| size | Size of the octahedron |
f32 getSize() const
Gets the size of the octahedron
void setColor(const Color& color)
Sets the color of the bone helper
| color | Color of the bone helper |
Color getColor() const
Gets the color of the bone helper
void update()
Updates the helper to match the bone's current transform
virtual Object3D* clone(bool recursive = true) const override
Creates a copy of this bone helper
| recursive | Whether to clone children |
virtual void copy(const Object3D& object, bool recursive = true) override
Copies properties from another object
| object | Source object to copy from | |
| recursive | Whether to copy children |
Properties
| enabled | bool | Active/inactive |
| id | u32 | Unique identifier |
| name | string | Optional display name |
| uuid | string | UUID string |
| version | u32 | Bumps on change |
| wireframeLine | Line* | Wireframe line mesh for bone head |
| wireframeMaterial | BasicMaterial* | Material for wireframe |