|Topic was automatically imported from the old Question2Answer platform.
I need to build a bit flag to pass to PhysicsDirectSpaceState.intersect_ray(). To do this, I need the index of the 3d physics layer I’ve named ‘Player’ in Project Settings/Layer Names. Rather than hardcoding this flag in my script, is there a way for me to query the API to find out what flag index I gave to the layer “Player”?
Are you referring to the collision layer?
Ertain | 2020-11-10 18:57
Yes. The value you enter in the Project Settings/Layer Names/3d Physics spreadsheet.
kitfox | 2020-11-10 22:51