Jump to content

[SOLVED] C# set node IntersectionMask


photo

Recommended Posts

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

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 by david.cambre
Link to comment
  • silent changed the title to [SOLVED] C# set node IntersectionMask
×
×
  • Create New...