a note to whether the players can move or not, I made a module that will measure the mass of both humanoids. the lighter humanoid has their platform stand enabled while the heavier one keeps its movement during a grab.
if I leave this out the humanoids will fight over who gets to stand and move.
In that regard, you may be able to use a combination of AlignPosition
and AlignOrientation
to accomplish your goal, although it wonât be as responsive.
As for the PrismaticConstraint
approach I had mentioned, initial tests at least donât kill the player, but Iâm too unfamiliar with physics constraints to provide to much help on how to implement this. Some combination of ensuring the attachments are correctly oriented, the constraint has a limit on its slider set to the distance between the two parts, and probably making the immobilized party Massless
during the grab.
It seems like the AlignPosition
and AlignOrientation
may actually be your best option. I had not realized, but both elements offer rigidity options that keep them pretty responsive, and they shouldnât kill your player.
were you able to test and confirm if it solves the problem? ill check it out myself and see but I was just curious if you already know or not.
Yes, the player stays alive. You will need to add an Attachment
to both parties, but the Attachment
for the controlling party needs to be at the controlledâs WorldPosition
. Both Attachments
need to be angled relative to the initial latch angle (that is, the forward orientation of the controlled relative to the controller). Both constraints need to have as much rigidity enabled as possible.
2 Likes
I was able to put together an example model that has both align positon and orientaion:
GameCap.wmv (1.1 MB)
its pretty responsive but I havent tested it with heavier models with more parts. I assume with rigidity enabed it should be as powerful and responsive as it can get.
to keep both parts relative to each other I put the attachments between both parts which can be scripted via magnitude and cframe. but what you said also would work having the attachments all at one position.