Ok so after a couple of hour of tinkering, I got to something close but not there yet:
- I added a physic handle to my character to grab stuff
- I added a scene component that I use as the holding location when I grab a thing
- I made it so that when I press the E key I do a line trace from my camera to detect if thereès something in front of me
- When the ray trace hit something, I use the physic handle to grab the thing and update the location at every frame
My character blue print:
With this, I’m able to grab any and all physic bodies.
Now I have another issue.
I made my door with a door frame and a door and activated physic on the door so that it can be move by the player. I used a physic constraint to limit the movement of the door. My issue is that it seems that the physic constraint work on the initial position of the door.
In my case, the default position is the door closed, meaning that the movement of the door look like this for a 90-degree movement
What I want is to restrict the movement so that it looks like this with a default closed door.