david.cambre Posted August 8, 2020 Share Posted August 8, 2020 Hi, I want to change the IntersectionMask of a Node true c# code. I found how to change the PhysicsIntersectionMask. drop_item.ObjectBody.GetShape(0).PhysicsIntersectionMask = 2; The object i want to manipulate is a Cylinder BodyRigid created in the Editor. Thanks Link to comment
david.cambre Posted August 9, 2020 Author Share Posted August 9, 2020 (edited) Hi again, Figured it out. I hope this code-sample helps somebody else. // Node n = item.Clone(); n.ObjectBody.Enabled =false; ObjectMeshStatic mesh = (n as ObjectMeshStatic); mesh.SetIntersection(false,0); // dropmesh.SetIntersectionMask(2,0) Edited August 9, 2020 by david.cambre Link to comment
Recommended Posts