This website requires JavaScript.
Explore
Help
Sign In
northern-lighthouse
/
godot
Watch
1
Star
0
Fork
0
You've already forked godot
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
Files
cf7e88f6ac0b5ace42df81a93cce8b51c17df960
godot
/
modules
/
godot_physics_2d
/
config.py
7 lines
102 B
Python
Raw
Normal View
History
Unescape
Escape
Move Godot Physics 2D into a module; add dummy 2D physics server If the module is enabled (default), 2D physics works as it did before. If the module is disabled and no other 2D physics server is registered (via a module or GDExtension), then we fall back to a dummy implementation which effectively disables 2D physics functionality (and a warning is printed). The dummy 2D physics server can also be selected explicitly, in which case no warning is printed.
2024-08-07 21:15:17 +02:00
def
can_build
(
env
,
platform
)
:
Allow to compile templates without physics servers
2025-02-27 19:01:23 -03:00
return
not
env
[
"
disable_physics_2d
"
]
Move Godot Physics 2D into a module; add dummy 2D physics server If the module is enabled (default), 2D physics works as it did before. If the module is disabled and no other 2D physics server is registered (via a module or GDExtension), then we fall back to a dummy implementation which effectively disables 2D physics functionality (and a warning is printed). The dummy 2D physics server can also be selected explicitly, in which case no warning is printed.
2024-08-07 21:15:17 +02:00
def
configure
(
env
)
:
pass
Reference in New Issue
Copy Permalink