diff options
author | fabriceci <fabricecipolla@gmail.com> | 2022-01-23 23:36:07 +0100 |
---|---|---|
committer | fabriceci <fabricecipolla@gmail.com> | 2022-01-24 15:19:43 +0100 |
commit | 856142a97d7df66da6d5a05ab7d3ba94b4d49e69 (patch) | |
tree | 3628251db17881ff04f92b537374f03951130888 /scene/3d/physics_body_3d.h | |
parent | 6a3ff8fa1f2cbad5752cf039827206ac265f68f6 (diff) | |
download | redot-engine-856142a97d7df66da6d5a05ab7d3ba94b4d49e69.tar.gz |
rename free mode to floating mode
Diffstat (limited to 'scene/3d/physics_body_3d.h')
-rw-r--r-- | scene/3d/physics_body_3d.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/3d/physics_body_3d.h b/scene/3d/physics_body_3d.h index e37b841117..65a763b21e 100644 --- a/scene/3d/physics_body_3d.h +++ b/scene/3d/physics_body_3d.h @@ -345,7 +345,7 @@ class CharacterBody3D : public PhysicsBody3D { public: enum MotionMode { MOTION_MODE_GROUNDED, - MOTION_MODE_FREE, + MOTION_MODE_FLOATING, }; enum MovingPlatformApplyVelocityOnLeave { PLATFORM_VEL_ON_LEAVE_ALWAYS, @@ -468,7 +468,7 @@ private: void set_moving_platform_apply_velocity_on_leave(MovingPlatformApplyVelocityOnLeave p_on_leave_velocity); MovingPlatformApplyVelocityOnLeave get_moving_platform_apply_velocity_on_leave() const; - void _move_and_slide_free(double p_delta); + void _move_and_slide_floating(double p_delta); void _move_and_slide_grounded(double p_delta, bool p_was_on_floor); Ref<KinematicCollision3D> _get_slide_collision(int p_bounce); |