diff options
| author | Fabio Alessandrelli | 2016-10-03 03:42:17 +0200 |
|---|---|---|
| committer | Fabio Alessandrelli | 2016-10-03 14:40:47 +0200 |
| commit | 1d09c27ba4b94e677b66d8d2c2b9e38f7829ad38 (patch) | |
| tree | 351b7c0487f33970445104992aaa4dd80f486e34 /scene/resources/world.cpp | |
| parent | 78d97b060a6873a454e710380cb9ef1bde5e4c65 (diff) | |
| download | godot-1d09c27ba4b94e677b66d8d2c2b9e38f7829ad38.tar.gz godot-1d09c27ba4b94e677b66d8d2c2b9e38f7829ad38.tar.zst godot-1d09c27ba4b94e677b66d8d2c2b9e38f7829ad38.zip | |
Diffstat (limited to 'scene/resources/world.cpp')
| -rw-r--r-- | scene/resources/world.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/resources/world.cpp b/scene/resources/world.cpp index 0a88abf25..1aeea5fa4 100644 --- a/scene/resources/world.cpp +++ b/scene/resources/world.cpp @@ -332,6 +332,10 @@ World::World() { sound_space = SpatialSoundServer::get_singleton()->space_create(); PhysicsServer::get_singleton()->space_set_active(space,true); + PhysicsServer::get_singleton()->area_set_param(space,PhysicsServer::AREA_PARAM_GRAVITY,GLOBAL_DEF("physics/default_gravity",9.8)); + PhysicsServer::get_singleton()->area_set_param(space,PhysicsServer::AREA_PARAM_GRAVITY_VECTOR,GLOBAL_DEF("physics/default_gravity_vector",Vector3(0,-1,0))); + PhysicsServer::get_singleton()->area_set_param(space,PhysicsServer::AREA_PARAM_LINEAR_DAMP,GLOBAL_DEF("physics/default_linear_damp",0.1)); + PhysicsServer::get_singleton()->area_set_param(space,PhysicsServer::AREA_PARAM_ANGULAR_DAMP,GLOBAL_DEF("physics/default_angular_damp",0.1)); #ifdef _3D_DISABLED indexer = NULL; |
