Update mode selection, update solver in editor, assign joints manually, bug fix - #8
Open
sameerahmed99 wants to merge 4 commits into
Open
Update mode selection, update solver in editor, assign joints manually, bug fix#8sameerahmed99 wants to merge 4 commits into
sameerahmed99 wants to merge 4 commits into
Conversation
- UpdateModes - Update in editor - Option to manually assign joint transforms - Fixed a bug where last transform in ik chain would have wrong rotations if its starting rotation didn't match ik target rotation by changing the order of quaternions in the solver function. - Made it optional to use offset for the last bone, otherwise override its rotation to match ik target
…mIKTarget, initialize method now exits if ik target isn't assigned instead of generating null ref which causes script to auto disable itself in unity 6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Users can now choose update mode: Update, Late, Fixed or Manual so that they can control when the solver runs (such as for doing some pre and post processing to the ik target's position)
Update in editor: Solver can now initialize and run in editor if the option is enabled by the user
Assign joints in inspector: Users can optionally assign joints manually. This is essential for situations where your hierarchy differs from what EasyIK expects or your joint has multiple children besides the next joint in the chain.
Last joint rotation error: Previously, if the rotation of the last joint did not match the rotation of the ik target, the offset would be incorrect. This is now fixed.
Optional last joint offset: By default, the last joint will now inherit the rotation of the ik target with an option to let it maintain its offset.
Added preprocessor directives to strip editor code from build