Tuesday, November 8, 2022
HomeGame Developmentcollision detection - UE5 - Simulate Physics causes Actor to fall via...

collision detection – UE5 – Simulate Physics causes Actor to fall via floor when participant interacts


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

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

All the things works high-quality. The participant can decide objects up and drop them, in addition to cycle them between hand and pocket, so long as ‘Simulate Physics’ is about to false on the merchandise that’s being picked up. Something the participant interacts with that has ‘Simulate Physics’ enabled falls via the ground upon interplay. that is the physics settings of the item: [![

]3]3

I want the code to permit me to select up physics objects. I consider that the ‘Set Actor Allow Collision’ is the difficulty as when this isn’t within the loop the Actor doesn’t fall via the bottom, nonetheless I must disable the Actors collision with the participant in any other case motion is hindered. I do not perceive why the ‘Connect Actor To Part’ does not maintain the Actor in place when the Actor ‘Simulate Physics’ is about to true.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments