#how do i change collision layer in code
8 messages · Page 1 of 1 (latest)
hii, yea but i wanna change it in the script. like i wanna remove a collsion layer when soemthing happens in the script
whatever.collision_layer = 0
thank you so much
Godot Engine documentation
Inherits: Node2D< CanvasItem< Node< Object Inherited By: Area2D, PhysicsBody2D Abstract base class for 2D physics objects. Description: Abstract base class for 2D physics objects. CollisionObject2D...
The set_collision_layer_value() function is generally a better option