How i can move a object to layer in script?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Morangodev

I don’t can make this

:bust_in_silhouette: Reply From: JimArtificer

You can set the property with the set_collision_layer_bit method.

https://docs.godotengine.org/en/stable/classes/class_physicsbody.html#class-physicsbody-method-set-collision-layer-bit

Thanks man! i am new on godot engine

Morangodev | 2020-07-15 22:22