Skip to content

CapsuleColliderComponent

29thnight edited this page Nov 27, 2025 · 1 revision

CapsuleColliderComponent

간단 설명: 캡슐 형태(반지름+높이)의 물리 콜라이더. 충돌/트리거 이벤트 및 마찰/반발/밀도 설정 제공.

라이프사이클

메서드 설명
생성자 기본 반지름/높이/타입(COLLISION) 초기화
Awake() 씬에 자신을 콜라이더로 등록
OnDestroy() 씬에서 등록 해제

정보 접근/설정

메서드 설명
GetRadius()/SetRadius(r) 반지름 조회/설정(Info 동기화)
GetHeight()/SetHeight(h) 높이 조회/설정
GetCapsuleInfo() 최종 CapsuleColliderInfo 구성 후 반환(레이어/마찰 등 포함)
SetCapsuleInfoMation(info) 외부에서 전체 Info 복원
GetColliderType()/SetColliderType(type) 타입 변경(Trigger/Collision 등)
GetStaticFriction()/SetStaticFriction(f) 정마찰
GetDynamicFriction()/SetDynamicFriction(f) 동마찰
GetRestitution()/SetRestitution(r) 반발 계수
GetDensity()/SetDensity(d) 밀도

Transform 오프셋

메서드 설명
SetPositionOffset(pos) 위치 오프셋 설정
GetPositionOffset() 위치 오프셋 반환
SetRotationOffset(rot) 회전 오프셋 설정
GetRotationOffset() 회전 오프셋 반환

이벤트 콜백(ICollider)

메서드 설명
OnTriggerEnter/Stay/Exit(other) 트리거 상호작용 처리/카운트 변경
OnCollisionEnter/Stay/Exit(other) 물리 충돌 상호작용 처리/카운트 변경

프로퍼티 / 필드

필드 설명
m_radius 사용자 설정 반지름
m_height 사용자 설정 높이
m_posOffset 위치 오프셋
m_rotOffset 회전 오프셋
staticFriction/dynamicFriction 마찰 계수들
restitution 반발 계수
density 밀도
m_Info 내부 캡슐 정보(물리엔진 전달 구조)
m_type 콜라이더 타입
m_collsionCount 충돌/트리거 카운트(디버그)

CreatorEngine

API Docs

API Reference
Main
PhysicsSystem
RenderEngine
ScriptBinder
Utility_Framework

etc

Clone this wiki locally