Getting an Error With GrabbedComponent

urc_s03_using_physics_handles

#1

When I try to access GrabbedComponent from PhysicsHandle, there is an inaccessible due to protection level error. However, when I peek into the PhysicsHandleComponent class to see its GrabbedComponent, that class is not under a private identifier. Can someone offer me a fix or explain if I possibly have been doing something wrong. Here is a screenshot of the code below.


#2

Hi, I had the same problem and fixed it, you just need to use
PhysicsHandle->GetGrabbedComponent() and it will work.


#3

Thank you! That worked.


#4

Hi, what is your unreal engine version you are using?


#5

Hi, what is your unreal engine version you are using for this?


#6

4.20