Error: "Pawn has to have 'Simulate Physics' enabled if you'd like to AddImpulse". When trying to move ragdolled character with impulse #230
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
When you call "ReplicatedRagdollStart", physic simulation is enabled for the mesh but only below the Pelvis bone (included). Here is the call in ALSBaseCharacter.cpp: https://github.com/dyanikoglu/ALS-Community/blob/81014e87b8767cd43512e9ba56920245413f5e09/Source/ALSV4_CPP/Private/Character/ALSBaseCharacter.cpp#L235 There might be some conflict between "Set Simulate Physics" and "Set All Bodies Below Simulate Physics" but I've tested it with another character (non ALS) and the "Set Simulate Physics" worked normally even after "Set All Bodies Below Simulate Physics" was called so I don't really know why it doesn't work with ALS_Character_BP (but I am not an expert). Anyway, one option is to remove the "Set Simulate Physics" node and in the "Add Impulse" node, to set the "Bone name" to "Pelvis" and this should apply an impulse (to the pelvis bone). For example, with this nodes, when I press F, the character (ragdoll) is launched in the air: |
Beta Was this translation helpful? Give feedback.
When you call "ReplicatedRagdollStart", physic simulation is enabled for the mesh but only below the Pelvis bone (included). Here is the call in ALSBaseCharacter.cpp: https://github.com/dyanikoglu/ALS-Community/blob/81014e87b8767cd43512e9ba56920245413f5e09/Source/ALSV4_CPP/Private/Character/ALSBaseCharacter.cpp#L235
There might be some conflict between "Set Simulate Physics" and "Set All Bodies Below Simulate Physics" but I've tested it with another character (non ALS) and the "Set Simulate Physics" worked normally even after "Set All Bodies Below Simulate Physics" was called so I don't really know why it doesn't work with ALS_Character_BP (but I am not an expert).
Anyway, one option is t…