ShovelingLife
A Game Programmer
ShovelingLife
전체 방문자
오늘
어제
  • 분류 전체보기 (1076) N
    • 그래픽스 (57)
      • 공통 (19)
      • 수학 물리 (22)
      • OpenGL & Vulkan (1)
      • DirectX (14)
    • 게임엔진 (184) N
      • Unreal (69)
      • Unity (104) N
      • Cocos2D-X (3)
      • 개인 플젝 (8)
    • 코딩테스트 (221)
      • 공통 (7)
      • 프로그래머스 (22)
      • 백준 (162)
      • LeetCode (19)
      • HackerRank (2)
      • 코딩테스트 알고리즘 (8)
    • CS (235)
      • 공통 (21)
      • 네트워크 (44)
      • OS & 하드웨어 (55)
      • 자료구조 & 알고리즘 (98)
      • 디자인패턴 (6)
      • UML (4)
      • 데이터베이스 (7)
    • 프로그래밍 언어 (350) N
      • C++ (168)
      • C# (90)
      • Java (9)
      • Python (34) N
      • SQL (30)
      • JavaScript (8)
      • React (7)
    • 그 외 (10)
      • Math (5)
      • 일상 (5)

블로그 메뉴

  • 홈
  • 태그
  • 방명록

공지사항

  • Source Code 좌측 상단에 복사 버튼 추가 완료
  • 언리얼 엔진 C++ 빌드시간 단축 꿀팁
  • 게임 업계 코딩테스트 관련
  • 1인칭 시점으로 써내려가는 글들

인기 글

태그

  • Unity
  • 포인터
  • 클래스
  • 오블완
  • 배열
  • 백준
  • 유니티
  • string
  • 함수
  • 티스토리챌린지
  • C++
  • SQL
  • 프로그래머스
  • 알고리즘
  • C
  • 언리얼
  • 그래픽스
  • c#
  • 파이썬
  • 문자열

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
ShovelingLife

A Game Programmer

게임엔진/Unreal

[Unreal] 충돌 관련 함수

2022. 5. 27. 21:06
/**
 * 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

 

UE Root Component 루트 컴포넌트

루트 컴포넌트는 충돌 인식과 월드 스페이스에서 오브젝트의 위치를 결정하고 항상 충돌을 탐지하는 컴포넌트(메쉬(Skeletal, Static) , 충돌체)여야 한다. 메쉬 컴포넌트를 설정했을 시 Mobility라는

devshovelinglife.tistory.com

 

함수 바인딩 방법 : https://devshovelinglife.tistory.com/15

 

UE 언리얼 충돌체 관련 함수와 이벤트(델리게이트) 바인딩 방법 #2

언리얼 엔진에선 두 가지의 충돌체가 존재한다. 하나는 메쉬(static 또는 skeletal)의 충돌체 그리고 충돌 컴포넌트(SphereComponent,BoxComponent 기타 등등). C++로 충돌체 이벤트 바인딩할 수 있는 방법 총

devshovelinglife.tistory.com

 

'게임엔진 > 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
    '게임엔진/Unreal' 카테고리의 다른 글
    • [Unreal] 차량 설정 방법 (Chaos Vehicle)
    • [Unreal] 인스턴스와 서브시스템 (Instance/SubSystem) 갖고오는 방법
    • [Unreal] 클래스 생성 시 소스 파일 기본 주석 제거
    • [Unreal] C++ 흔한 헤더파일 오류와 해결방법
    ShovelingLife
    ShovelingLife
    Main skill stack => Unity C# / Unreal C++ Studying Front / BackEnd, Java Python

    티스토리툴바