Home Game Development collision detection – UE5 – Simulate Physics causes Actor to fall by way of floor when participant interacts

collision detection – UE5 – Simulate Physics causes Actor to fall by way of floor when participant interacts

0
collision detection – UE5 – Simulate Physics causes Actor to fall by way of floor when participant interacts

[ad_1]

I’ve arrange a easy code that enables the participant to make use of a line hint to choose up objects and assign them to one among three sockets on the character mesh.
enter image description here

I then arrange the flexibility for the participant to cycle between gadgets in ‘pockets’ and gadgets in hand, in addition to dropping the gadgets.
enter image description here

Everything works nice. The participant can choose gadgets up and drop them, in addition to cycle them between hand and pocket, so long as ‘Simulate Physics’ is ready to false on the merchandise that’s being picked up. Anything the participant interacts with that has ‘Simulate Physics’ enabled falls by way of the ground upon interplay. that is the physics settings of the item: [![

]3]3

I want the code to permit me to choose up physics gadgets. I consider that the ‘Set Actor Enable Collision’ is the difficulty as when this isn’t within the loop the Actor doesn’t fall by way of the bottom, nonetheless I have to disable the Actors collision with the participant in any other case motion is hindered. I do not perceive why the ‘Attach Actor To Component’ would not maintain the Actor in place when the Actor ‘Simulate Physics’ is ready to true.

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here