[add] PhysX 이동 보정
This commit is contained in:
@@ -69,6 +69,11 @@ PSX::PxController* CCharacter_Controller::Get_Controller()
|
||||
return m_pController;
|
||||
}
|
||||
|
||||
PSX::PxControllerCollisionFlags CCharacter_Controller::Get_CollisionFlags()
|
||||
{
|
||||
return m_eBeforeCollisionFlags;
|
||||
}
|
||||
|
||||
void CCharacter_Controller::Resize_Volume(_float fHeight)
|
||||
{
|
||||
m_pController->resize(fHeight);
|
||||
@@ -326,6 +331,7 @@ void CCharacter_Controller::Free()
|
||||
void CCharacter_Controller::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("Character_Controller");
|
||||
GUI::Text("Gravity : %d ", m_bGravity);
|
||||
m_pTransform->Describe_Entity();
|
||||
GUI::TextLinkOpenURL("More details here", "https://dev-treadmill.tistory.com/158");
|
||||
_float fContact = m_pController->getContactOffset();
|
||||
|
||||
@@ -55,7 +55,8 @@ class ENGINE_DLL CCharacter_Controller final :
|
||||
void Set_Position(_fvector vNewPos); // 순간이동
|
||||
_vector Get_Position();
|
||||
_vector Get_FootPosition(); // ContactOffset이 고려된 발바닥 위치( 실제보다 바닥 위치가 더 아래에 위치한다는 뜻 )
|
||||
|
||||
|
||||
PSX::PxControllerCollisionFlags Get_CollisionFlags();
|
||||
void Resize_Volume(_float fHeight); // 높이를 수정하고 바닥에 붙임
|
||||
void Modify_Volume(_float3 fVolume);
|
||||
_float3 Get_Volume();
|
||||
@@ -71,8 +72,8 @@ class ENGINE_DLL CCharacter_Controller final :
|
||||
PSX::PxController* m_pController = { nullptr };
|
||||
CTransform* m_pTransform = { nullptr };
|
||||
_bool m_bAutoStepping = { false };
|
||||
_float m_fGravity = { 0.129f };
|
||||
_float m_fSlopeLimit = { 0.69f/*0~1*/}; // cosf각도, 오르막 경사각 제한. ( 추가설정 필요함 )
|
||||
_float m_fGravity = { 0.094f };
|
||||
_float m_fSlopeLimit = { 0.302f/*0~1*/}; // cosf각도, 오르막 경사각 제한. ( 추가설정 필요함 )
|
||||
PhsXUserData m_tagData = {};
|
||||
|
||||
PSX::PxControllerCollisionFlags m_eBeforeCollisionFlags = {};
|
||||
|
||||
Reference in New Issue
Block a user