hello, im trying to make a custom supply drop , i want it to spawn on random locations , so i wrote a code for that and i also wrote a code for it to move down , but the problem is that i dont know how to detect when my prop (drop) hits another prop so i can stop it moving down . Is it even possible to detect prop hitting another prop?
(I tried it with prop mover device but then my drop always goes to prop movers location )
I don’t think there’s a built in way (until scene graph) to detect prop collisions, but a workaround is you can manually track the positions of both props and check the distance between the two of them regularly.
How about ray casting? Maybe that could work?
Raycasting works but it took me 2 days to work it out
This is the video that showed me the basics but didn’t show any verse code so what i did in the end is create a verse loop to detect when the scale of the mesh change and this meant it had collided with something. Also note that all meshes i wanted it to collide with had to be FortStaticMesh collision or it went through it as it didn’t register the collision. Also the sleep in the verse had to be Sleep(0.1) so i made the sphere bigger over many trial and errors to account for the extra delayed sleep time
Hope this helps and i wish you luck but again its super complex and not something i wish to do again until sg comes out
This is what i achieved