Arch_Mage
(Arch_Mage)
July 8, 2016, 10:08pm
#1
So, when making animations for an enemy in my game, I found that strange behaviour was occurring.
When in the animation editor, and if the HumanoidRootPart was anchored, the animation would be played back correctly.
However, in-game, when the HumanoidRootPart was unanchored, the behaviour would be quite strange indeed.
The HRP is highlighted as neon red. The HRP moves, but the torso seems to remain mostly static? It’s also rotated strangely.
Some help in remedying this would be appreciated.
@AbstractAlex
1 Like
Questions:
Do you have a part named HumanoidRootPart? Torso?
If so, what are their sizes?
Often when I see these issues it is because the HumanoidRootPart does not become the assembly root because it does not have enough mass.
5 Likes
Arch_Mage
(Arch_Mage)
July 8, 2016, 10:17pm
#4
Ah, thanks.
I resized the HRP up slightly and that appeared to fix it.
Is there anything that could be fixed here on your end, or is it easier to just allow players to work it out :?
Can you try making your HumanoidRootPart larger than the torso and seeing if the issue persists? Just to rule out one possible reason it wouldn’t work.
Edit: (Ninja’d) Glad that works!
On our end, the way the physics engine works is by taking the larger part as the root of the geometry. There are special “mass multipliers” that apply to Torso, hrp and Seats to ensure they usually get to be assigned as an assembly root. I believe this is still how we do it.
To answer your question, I do not believe this will change on our end. A way of detecting this in the editor would be fantastic though. I’ll look into implementing something like this.
2 Likes
Arch_Mage
(Arch_Mage)
July 8, 2016, 10:20pm
#6
Hmm, alright.
Thanks for the help, though!
What’s curious is that earlier I tried setting Torso density to 0.01 (in run-time, i believe), and that didn’t actually fix it.
I don’t believe density plays any role in determining an assembly (what we call a chain of connected parts) root.
I could be wrong though, @Khanovich would know for sure!
Arch_Mage
(Arch_Mage)
July 8, 2016, 10:22pm
#8
Sorry for probably asking the wrong person here, but do you reckon that’s intended behaviour?
AbstractAlex:
On our end, the way the physics engine works is by taking the larger part as the root of the geometry. There are special “mass multipliers” that apply to Torso, hrp and Seats to ensure they usually get to be assigned as an assembly root. I believe this is still how we do it.
This arbitrary behavior needs to stop. Part0 should be the root and Part1 should be the subpart. @CodeWriter @Silent137 here’s another reason to add onto the ones you responded to in these threads:
The new weld system completely disregards the Part0/Part1 properties and makes the largest part Part0 and the smallest part Part1. That causes this to happen:
[image]
[image]
The weld system can’t make up its mind which one is largest so if I go into Play mode one time with the below script running, I could have my torso be in the correct place and the first-person one behind it like it should be, or the weld system could pick the first person torso (the blue one) to be Part0 despite explic…
2 Likes
Could you post the original sizes of your Torso and hrp? Before you fixed it?
Arch_Mage
(Arch_Mage)
July 8, 2016, 10:28pm
#11
“hrp is 2, 2, 2
torso is 2.765, 3.134, 4.8”
and then I resized HRP to 3,3,3, which fixed the issue
system
(system)
Closed
October 25, 2022, 8:28pm
#12
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.