diff options
author | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2021-09-16 12:37:24 -0700 |
---|---|---|
committer | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2021-09-16 16:03:48 -0700 |
commit | ed1ba5093f6a9d10adb5da74580bcb4469159214 (patch) | |
tree | c014e84d3930610b0c6ac658d86f41230fc05472 /tests | |
parent | 3581b893ed2dc1e444618ac40dc26dd58fe1219a (diff) |
Clarify RigidDynamicBody modes
RigidDynamicBody modes are replaced with several properties to make their
usage clearer:
-lock_rotation: disable body's rotation (instead of MODE_LOCKED)
-freeze: no gravity or forces (instead of MODE_STATIC and MODE_KINEMATIC)
-freeze_mode: Static (can be only teleported) or Kinematic (can be animated)
Also renamed MODE_DYNAMIC_LOCKED to MODE_DYNAMIC_LINEAR in the physics
servers.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_physics_3d.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_physics_3d.cpp b/tests/test_physics_3d.cpp index 3d1dad6545..d839ae26b7 100644 --- a/tests/test_physics_3d.cpp +++ b/tests/test_physics_3d.cpp @@ -361,7 +361,7 @@ public: RID mesh_instance = vs->instance_create2(capsule_mesh, scenario); character = ps->body_create(); - ps->body_set_mode(character, PhysicsServer3D::BODY_MODE_DYNAMIC_LOCKED); + ps->body_set_mode(character, PhysicsServer3D::BODY_MODE_DYNAMIC_LINEAR); ps->body_set_space(character, space); //todo add space ps->body_add_shape(character, capsule_shape); |