find_me Posted August 3, 2020 Share Posted August 3, 2020 Does anyone have a working example of physics intersections? I can get World Intersections to work, which detect things such as ObjectMeshClusters. However I can not for the life of me get an Object to return from my physics intersection. I can not find any working examples in the documents either. I have collision & intersection flags on my objects set. My objects also have a rigid body shape. They are ObjectMeshStatic class. Can anyone nudge me in the right direction I have tried about a hundred different ways to re-write my snippet and ultimately, I get no Object return from my intersection. Link to comment
karpych11 Posted August 3, 2020 Share Posted August 3, 2020 Hello, You can try using the attached component. I used two objects with Physics Intersection flags enabled. If the intersection is successful, the object name and the intersection point are displayed. PhysicsIntersection.cs 1 Link to comment
find_me Posted August 3, 2020 Author Share Posted August 3, 2020 (edited) Thank you thank you so much. I'm not a fan of asking FOR code, but I've been tearing my hair out over this simple script. Edited August 4, 2020 by find_me 1 Link to comment
Recommended Posts