Feat: Improve ArmatureDebugger #2493
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This update refines the
ArmatureDebugger
class by optimizing its structure and adding comprehensive Javadoc documentation. The changes improve code readability, maintainability, and provide detailed explanations for class functionality making it easier for developers to understand and utilize the armature debugging tools.This PR introduces a significant refactor and optimization of the
ArmatureNode
class, which is responsible for visualizing JME3 armatures for debugging.Key changes include:
pick
andcollideWith
methods for more robust 2D picking of joint heads and bone wires.setHeadColor(Joint, ColorRGBA)
,setHeadColor(ColorRGBA)
,setLineColor(ColorRGBA)
for easier programmatic control over the visualization colors.These changes make
ArmatureNode
more robust, easier to understand, and more flexible for debugging armature animations and poses.Edit:
Usage example: