Thanks in advance!
RBD Fracture Constraints not breaking...
288 3 2- georgebersey
- Member
- 2 posts
- Joined: 7月 2021
- Offline
- npetit
- スタッフ
- 411 posts
- Joined: 2月 2008
- Offline
If you have a hipfile it'll help identify what's going wrong. The way the sim is behaving looks very wrong - I suspect it might have something to do with you possibly having duplicate names in the RBD pieces and constraint anchor names since you are fracturing in a for loop.
Here's a simple example showing the distance threshold breaking the soft constraints.
Here's a simple example showing the distance threshold breaking the soft constraints.
- georgebersey
- Member
- 2 posts
- Joined: 7月 2021
- Offline
- npetit
- スタッフ
- 411 posts
- Joined: 2月 2008
- Offline
I don't think that file is the same as the one you showed the problems with, I can't repro the issue in this file and the ball position is very different to the one in your video.
I did notice that you are fracturing the pieces in a for loop, which will result in duplicate names for different pieces - if you use a connectivity SOP to create the name attribute before the RBD Material Fracture SOP, enable the "Fracture per Piece" option, you'll get the same result without the need for a for loop.
You use 2 assemble SOPs to create the names with the same prefix then merge - this results in overlapping names.
In /obj/constraint_and_sim_test you unpack the packed fragments and pipe that through a connect adjacent pieces SOP to create the constraints (which have duplicate names). You then repack the unpacked geo with an assemble SOP set to create the names which creates new unique names - your constraints won't match up with the geo.
Here's a cleaned up version of your hip file with no overlapping names.
I did notice that you are fracturing the pieces in a for loop, which will result in duplicate names for different pieces - if you use a connectivity SOP to create the name attribute before the RBD Material Fracture SOP, enable the "Fracture per Piece" option, you'll get the same result without the need for a for loop.
You use 2 assemble SOPs to create the names with the same prefix then merge - this results in overlapping names.
In /obj/constraint_and_sim_test you unpack the packed fragments and pipe that through a connect adjacent pieces SOP to create the constraints (which have duplicate names). You then repack the unpacked geo with an assemble SOP set to create the names which creates new unique names - your constraints won't match up with the geo.
Here's a cleaned up version of your hip file with no overlapping names.
-
- Quick Links