/**
* Delegate for notification of blocking collision against a specific component.
* NormalImpulse will be filled in for physics-simulating bodies, but will be zero for swept-component blocking collisions.
*/
DECLARE_DYNAMIC_MULTICAST_SPARSE_DELEGATE_FiveParams( FComponentHitSignature, UPrimitiveComponent, OnComponentHit, UPrimitiveComponent*, HitComponent, AActor*, OtherActor, UPrimitiveComponent*, OtherComp, FVector, NormalImpulse, const FHitResult&, Hit );
/** Delegate for notification of start of overlap with a specific component */
DECLARE_DYNAMIC_MULTICAST_SPARSE_DELEGATE_SixParams( FComponentBeginOverlapSignature, UPrimitiveComponent, OnComponentBeginOverlap, UPrimitiveComponent*, OverlappedComponent,AActor*,OtherActor, UPrimitiveComponent*, OtherComp, int32, OtherBodyIndex, bool, bFromSweep, const FHitResult &, SweepResult);
/** Delegate for notification of end of overlap with a specific component */
DECLARE_DYNAMIC_MULTICAST_SPARSE_DELEGATE_FourParams( FComponentEndOverlapSignature,UPrimitiveComponent, OnComponentEndOverlap, UPrimitiveComponent*, OverlappedComponent, AActor*, OtherActor, UPrimitiveComponent*,OtherComp, int32, OtherBodyIndex);
/** Delegate for notification when a wake event is fired by physics*/
DECLARE_DYNAMIC_MULTICAST_SPARSE_DELEGATE_TwoParams(FComponentWakeSignature, UPrimitiveComponent, OnComponentWake, UPrimitiveComponent*,WakingComponent, FName, BoneName);
/** Delegate for notification when a sleep event is fired by physics*/
DECLARE_DYNAMIC_MULTICAST_SPARSE_DELEGATE_TwoParams(FComponentSleepSignature, UPrimitiveComponent, OnComponentSleep, UPrimitiveComponent*, SleepingComponent, FName, BoneName);
/** Delegate for notification when collision settings change. */
DECLARE_DYNAMIC_MULTICAST_SPARSE_DELEGATE_OneParam(FComponentCollisionSettingsChangedSignature, UPrimitiveComponent, OnComponentCollisionSettingsChangedEvent, UPrimitiveComponent*, ChangedComponent);
아래 충돌체 컴포넌트라 하면 예) 박스 콜라이더 UBoxComponent, 원형 콜라이더 USphereComponent
충돌 이벤트 활성화/비활성화
충돌체 컴포넌트->SetNotifyRigidBodyCollision
또는
충돌체 컴포넌트->BodyInstance.bNotifyRigidBodyCollision
오버랩 이벤트 활성화/비활성화
충돌체 컴포넌트->SetGenerateOverlapEvents
루트 컴포넌트 충돌 관련 https://devshovelinglife.tistory.com/138
함수 바인딩 방법 : https://devshovelinglife.tistory.com/15
'게임엔진 > Unreal' 카테고리의 다른 글
[Unreal] 언리얼 충돌체 관련 함수와 이벤트(델리게이트) 바인딩 방법 #2 (0) | 2022.06.02 |
---|---|
[Unreal] 차량 설정 방법 (Chaos Vehicle) (0) | 2022.05.30 |
[Unreal] 인스턴스와 서브시스템 (Instance/SubSystem) 갖고오는 방법 (0) | 2022.05.28 |
[Unreal] 클래스 생성 시 소스 파일 기본 주석 제거 (0) | 2022.05.26 |
[Unreal] C++ 흔한 헤더파일 오류와 해결방법 (0) | 2022.05.26 |