Lection 67 - Door is transparent for the Pawn

Good day!

I am having problems with my door, previously it was fine and the collision settings are set properly to Block All. But today after CloseDoor() function implementation it started to be transparent and I can go through the closed door even.
I have tried to use
Owner->SetActorEnableCollision(true);
but it didn’t worked.

Any help with this bug please?

Cheers,
Pavel

p.s. all function are working correctly - door opens and closes.

EDIT: fixed by adding an additional collision box (it was missing for some reason)

I had the same problem but it was not really that the door was transparent. The problem was in where the door started. I fixed it by goiong into the OpoenDoor.h and adding

UPROPERTY(EditAnywhere)
float CloseAngle = 180.0f;

I put this after the OpenAngle Uproperty. It seems that we were doing something that allowed the game to override what we put in the Unreal interface for rotations start position and it went to 0.0 and not 180 ( or wherever you start ) like we put in.

Privacy & Terms