두 물체를 연결하기 위해서 socket을 사용해야 한다는 조언을 들었다.
https://blog.naver.com/destiny9720/220903194593
[2-7] 소켓 시스템
이번 강좌에서는 언리얼 엔진이 제공하는 소켓 시스템을 이용해 체계적으로 닫힌 공간을 제작하고 캐릭터에...
blog.naver.com
https://docs.unrealengine.com/4.27/ko/WorkingWithContent/Types/StaticMeshes/HowTo/Sockets/
스태틱 메시에 소켓 구성 및 사용
소켓 셋업 및 사용 하우투입니다.
docs.unrealengine.com
https://danny-padron09.medium.com/using-the-physics-handle-to-grab-objects-in-unreal-70ec9e5382f4
Using the Physics Handle to Grab Objects in Unreal
The time has come to finally put all the preparation work that we have been doing to make sure that this Grab functionality in our game is…
danny-padron09.medium.com
소켓!!!!!!!!!!!!!!!!!
일단은 필요 없는 걸로 결론남 ㅠㅠ
편해 보이긴 하는데 나중에 다시 살펴봐야겠다
손에 붙이려고 그렇게 난리쳤던 게 손에 안 붙은 이유는
액터의 스태틱메시에 Physics가 활성화되어있지 않아서였음
HookedComponent->SetSimulatePhysics(true);
바로 손에 달라붙는다......
위치가 좀 이상하게 붙는다 싶더니
캐릭터 블루프린트에 붙여둔 GrabLocation 을 제대로 가져오지 못해서였다
FindComponentByClass로 USceneComponent인 GrabLocation을 불러오려고 했는데,
USceneComponent가 여러 개라서 더 상위에 있는 애를 가져온 것 같다
characterGrabLocation = Cast<USceneComponent>(GetDefaultSubobjectByName(TEXT("GrabLocation")));
GetDefaultSubobjectByName으로 해결...
블루프린트에서의 위치도 적절히 옮겨 주었다
'[햄] 작업일기' 카테고리의 다른 글
230717 대화 진행, EndInteract 키 변경 (0) | 2023.07.17 |
---|---|
230714 상호작용 중임을 판단하기 (0) | 2023.07.14 |
230706 (0) | 2023.07.07 |
230704 (0) | 2023.07.04 |
230625-230627 (0) | 2023.06.24 |