Jesusemora
Cant get it to work. I tried setting up 4 layers like you wrote, and changed the pickups to area3ds, and set the raycast to detect areas.
As soon as I turn off layer 1 for the pickups, the raycast stops detecting them.
Here is how I set up the pickups (scraps)
`SetCollisionLayerValue(tacticalScene.COLLISION_LAYER_STATIC, false);
SetCollisionLayerValue(tacticalScene.COLLISION_LAYER_DRONE, false);
SetCollisionLayerValue(tacticalScene.COLLISION_LAYER_SCRAP, true);
SetCollisionLayerValue(tacticalScene.COLLISION_LAYER_RAYCAST, false);
SetCollisionMaskValue(tacticalScene.COLLISION_LAYER_STATIC, false);
SetCollisionMaskValue(tacticalScene.COLLISION_LAYER_DRONE, false);
SetCollisionMaskValue(tacticalScene.COLLISION_LAYER_SCRAP, false);
SetCollisionMaskValue(tacticalScene.COLLISION_LAYER_RAYCAST, true);`
and I set up the raycast like this
rayCast.SetCollisionMaskValue(tacticalScene.COLLISION_LAYER_STATIC, true);
rayCast.SetCollisionMaskValue(tacticalScene.COLLISION_LAYER_DRONE, true);
rayCast.SetCollisionMaskValue(tacticalScene.COLLISION_LAYER_SCRAP, true);
rayCast.SetCollisionMaskValue(tacticalScene.COLLISION_LAYER_RAYCAST, true);
Any help debugging this is appreciated.