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

Ragdoll fly around or stuck #587

Open
CrazyDogJ opened this issue Dec 4, 2024 · 2 comments
Open

Ragdoll fly around or stuck #587

CrazyDogJ opened this issue Dec 4, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@CrazyDogJ
Copy link

CrazyDogJ commented Dec 4, 2024

Describe the bug
Ragdoll will fly around or stuck when any body instances are set to simulated in physics asset
It might be a UE bug because it happened in default third person template

Version
5.4.4
Source code version

Fixing suggestion
void AAlsCharacter::StartRagdollingImplementation()
...
GetMesh()->SetCollisionObjectType(ECC_PhysicsBody);
GetMesh()->SetCollisionEnabled(ECollisionEnabled::QueryAndPhysics);
GetMesh()->SetSimulatePhysics(true);
// Add a reset function here
GetMesh()->ResetAllBodiesSimulatePhysics();
...

@CrazyDogJ CrazyDogJ added the bug Something isn't working label Dec 4, 2024
@murataka
Copy link

in my case , i'm not using ragdoll or anything physical but the movement mode switches to custom after falling in some cases , and character gets stuck because the movement mode should be falling instead. will check further how to reproduce .

@murataka
Copy link

in my case , i'm not using ragdoll or anything physical but the movement mode switches to custom after falling in some cases , and character gets stuck because the movement mode should be falling instead. will check further how to reproduce .

I disabled mantling and can not reproduce now . The only custom mode is set here :

GetCharacterMovement()->SetMovementMode(MOVE_Custom);

it happens when I use the ability system to move character to a target and the height from ground is not enough to let character fall I think .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants