Skip to content

RigidBodyComponent

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

RigidBodyComponent

간단 설명: 물리 리지드바디 설정/상태를 관리하고 PhysicsManager에 변경을 통지하는 컴포넌트.

라이프사이클

메서드 설명
Awake() 물리 초기화 및 등록
OnDestroy() 등록 해제

타입/속성

메서드 설명
Get/SetBodyType() EBodyType 변경
Get/SetLinearVelocity()/AddLinearVelocity() 선형 속도 설정/누적
Get/SetAngularVelocity() 각속도 설정
SetAngularDamping/SetLinearDamping 감쇠 계수 설정
AddForce(force, mode) 힘 적용(모드별)
SetMass(mass) 질량 설정
최대값 조회 GetMaxLinearVelocity()/...
SetForceMode(mode) 힘 적용 모드 변경

상태 플래그

항목 설명
SetKinematic/IsKinematic 키네마틱 on/off
SetIsTrigger/IsTrigger 트리거 on/off
SetColliderEnabled/IsColliderEnabled 콜라이더 활성
UseGravity/IsUsingGravity 중력 사용
SetLockLinear/Angular*, LockLinearXZ/LockAngularXYZ
더티 DevelopOnlyDirtySet, IsRigidbodyDirty 플래그 조회

데이터/내부

  • 프로퍼티: 질량/감쇠/최대값/중력/트리거/키네마틱/콜라이더 상태/스케일 등
  • 내부 플래그 비트: 선형/각 락, DIRTY 추적
  • 변경 시 NotifyPhysicsStateChange(...)로 물리 상태 갱신 요청

CreatorEngine

API Docs

API Reference
Main
PhysicsSystem
RenderEngine
ScriptBinder
Utility_Framework

etc

Clone this wiki locally