Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | frankiezafe |
Just for this information to be stored somewhere: it is possible to enable physics processing in the editor.
tool
extends Spatial
export (bool) var activate_physics = false setget _activate_physics
func _activate_physics( b ):
activate_physics = b
PhysicsServer.set_active( activate_physics )
func _ready():
pass
For 2D, it’s Physics2DServer.set_active(activate_physics)
.
Dlean Jeans | 2019-05-21 12:49