전체 글339 4. PhysX - RigidBody 개요 - PhysX는 위와 같은 RigidBody / Actor 모델을 사용한다. 클래스 확장 기능 PxBase N/A 리플렉션 / 쿼리 PxActor PxBase 액터의 이름과 플래그 PxRigidActor PxActor 모양 PxRigidBody PxRigidActor 질량, 관성, 속도, 바디 플래그 PxRigidStatic PxRIgidActor 씬의 정적 바디 인터페이스 PxRigidDynamic PxRigidBody 씬의 동적 바디 인터페이스 PxArticulationLink PxRigidBody - PxArticulation PxBase - RigidBody Pipeline - Tutorial에서 설명한 내용과 같이, PxFoundation에서 시스템에 대한 전반적인 내용을 관리한다 - PxPhy.. 2023. 3. 3. 3. PhysX - Geometry PhysX 지오메트리는 강체의 모양을 만드는 데 사용되며, 충돌 트리거로 사용된다. PhysX는 지오메트리 간 교차점 검사, 레이캐스팅, 한 지오메트리를 다른 지오메트리와 충돌 검사하는 함수도 제공한다 (이 함수는 독립적으로 실행된다고 함) 지오메트리는 공통 기본 클래스인 PxGeometry에서 상속된다. 각 지오메트리 클래스는 고정된 위치, 방향을 가진 볼륨, 표면을 정의한다 지오메트리는 두 가지 클래스로 나뉨 1. 기본 도형 - 지오메트리 객체가 모든 데이터를 포함한다 - PxBoxGeometry - PxSphereGeometry - PxCapsuleGeometry - PxPlaneGeometry 2. 메시 또는 높이 필드 - 지오메트리 객체가 훨씬 큰 객체를 가리키는 포인터를 포함한다 - PxCon.. 2023. 3. 3. 2. PhysX API 본 게시글은 NVIDIA PhysX 4.1 SDK Guide를 참고하여 정리한 글입니다. https://gameworksdocs.nvidia.com/PhysX/4.1/documentation/physxguide/Manual/API.html#determinism The PhysX API — NVIDIA PhysX SDK 4.1 Documentation Introduction This chapter covers the basic patterns common to the PhysX application programming interface (API.) We are committed to keeping this API stable and backwards-compatible from one minor rele.. 2023. 3. 2. 1. 구조체 바인딩 본 게시글은 제가 에이콘 출판사의 "C++17 STL 프로그래밍" 서적을 학습하며 정리한 게시글입니다. 구조체 바인딩 (Structured Binding) - C++17에서 추가된 문법 - 구조체나 pair, tuple로 묶은 요소들을 풀어서 각각의 변수에 할당할 수 있게 해주는 문법 #include #include #include #include using namespace std; // 배당금과 제수 파라미터를 받으며, 분수 뿐 아니라 나머지 값도 반환하는 수학 함수 pair divide_remainder(int devidend, int divisor) { return pair(devidend, divisor); } tuple stock_info(const string& name) { //... } .. 2023. 3. 1. 이전 1 ··· 46 47 48 49 50 51 52 ··· 85 다음