Bugfix Enemies Jumping Around
This commit is contained in:
parent
923073d734
commit
0f41565f88
@ -105,6 +105,7 @@ void AAICharacter::OnDeath()
|
|||||||
GetMesh()->SetSimulatePhysics(true);
|
GetMesh()->SetSimulatePhysics(true);
|
||||||
GetMesh()->WakeAllRigidBodies();
|
GetMesh()->WakeAllRigidBodies();
|
||||||
GetMesh()->bBlendPhysics = true;
|
GetMesh()->bBlendPhysics = true;
|
||||||
|
GetMesh()->SetCollisionResponseToChannel(ECC_GameTraceChannel4, ECR_Ignore);
|
||||||
|
|
||||||
if (UCharacterMovementComponent* CharacterComp = Cast<UCharacterMovementComponent>(GetMovementComponent()))
|
if (UCharacterMovementComponent* CharacterComp = Cast<UCharacterMovementComponent>(GetMovementComponent()))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user