Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Welding bones to attachments #16

Closed
JakeyWasTaken opened this issue Feb 4, 2024 · 1 comment
Closed

Welding bones to attachments #16

JakeyWasTaken opened this issue Feb 4, 2024 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@JakeyWasTaken
Copy link
Collaborator

This issue just covers a feature implementation for the feature request from InquisitorSource5

image

A few use cases for this feature would be:

  • Capes with bones attached to the shoulders
  • Grabbing bones

An implementation of such a feature would be as follows:
Object value under bone called "SmartWeld" this would point to an attachment that the bone should attach to
Create a new constraint which just forces the bones position to be at a specified location
At the start of each frame check for a SmartWeld object and check if the attachments position has changed, If so update our internal bone data to reflect that
Pass that data to the weld constraint which would then force the bones location

If you have any other ideas on such an implementation feel free to share.

@JakeyWasTaken JakeyWasTaken added the enhancement New feature or request label Feb 4, 2024
@JakeyWasTaken JakeyWasTaken added this to the v0.3.0 milestone Feb 4, 2024
@JakeyWasTaken
Copy link
Collaborator Author

JakeyWasTaken commented Feb 16, 2024

Final implementation was decided as, SmartWeld object which can reference an attachment, bone or basepart. It can have an attribute called "Rigid" which controls wether it should use a spring or just set the bones position, commit soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant