-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
Setting SoftBody pinned points programmatically #26594
Comments
@Chaosus I just tested and it actually works as long as you replace original array with a new one: sb.pinned_points = sb.pinned_points + [42]
# or
sb.pinned_points = [34, 42, 1337] This should be be documented somewhere. Also the documentation should mention that I think "documentation needed" label should be added. |
I'd actually suggest adding a binding to the "pin_point" method, it seems simpler:
|
For anyone ending up here, this "polyfill" will do the job:
You can create a new class like |
@mrzapp I just tried that and I'm getting a crash when I try to do this at runtime
|
@jedStevens I didn't experience this crash myself, but I'd suggest trying to remove one line of code at a time to pinpoint where the error occurs and create a new issue on it, if you manage to reproduce it reliably. |
Godot version:
3.1-beta10
OS/device including version:
ArchLinux rolling
Issue description:
There seems to be no way to build SoftBody from script.
pinned_points
is exposed, but not documented.attachments
is undefined, although visible in editor. I'm running this in custom post-import script.Steps to reproduce:
The text was updated successfully, but these errors were encountered: