Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
illuna-minetest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Illuna-Minetest
illuna-minetest
Commits
36747794
Commit
36747794
authored
11 years ago
by
Perttu Ahola
Browse files
Options
Downloads
Patches
Plain Diff
Disable fall bobbing by default; enable using fall_bobbing_amount = 1.0
parent
c03c296d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
minetest.conf.example
+2
-0
2 additions, 0 deletions
minetest.conf.example
src/camera.cpp
+2
-0
2 additions, 0 deletions
src/camera.cpp
src/defaultsettings.cpp
+1
-0
1 addition, 0 deletions
src/defaultsettings.cpp
with
5 additions
and
0 deletions
minetest.conf.example
+
2
−
0
View file @
36747794
...
...
@@ -136,6 +136,8 @@
#screenshot_path = .
# Amount of view bobbing (0 = no view bobbing, 1.0 = normal, 2.0 = double)
#view_bobbing_amount = 1.0
# Amount of fall bobbing (0 = no fall bobbing, 1.0 = normal, 2.0 = double)
#fall_bobbing_amount = 0.0
# Anaglyph stereo
#anaglyph = false
#anaglyph_strength = 0.1
...
...
This diff is collapsed.
Click to expand it.
src/camera.cpp
+
2
−
0
View file @
36747794
...
...
@@ -263,6 +263,8 @@ void Camera::update(LocalPlayer* player, f32 frametime, v2u32 screensize,
fall_bobbing
=
sin
(
fall_bobbing
*
0.5
*
M_PI
)
*
-
1
;
// Amplify according to the intensity of the impact
fall_bobbing
*=
(
1
-
rangelim
(
50
/
player
->
camera_impact
,
0
,
1
))
*
5
;
fall_bobbing
*=
g_settings
->
getFloat
(
"fall_bobbing_amount"
);
}
// Set head node transformation
...
...
This diff is collapsed.
Click to expand it.
src/defaultsettings.cpp
+
1
−
0
View file @
36747794
...
...
@@ -107,6 +107,7 @@ void set_default_settings(Settings *settings)
settings
->
setDefault
(
"enable_clouds"
,
"true"
);
settings
->
setDefault
(
"screenshot_path"
,
"."
);
settings
->
setDefault
(
"view_bobbing_amount"
,
"1.0"
);
settings
->
setDefault
(
"fall_bobbing_amount"
,
"0.0"
);
settings
->
setDefault
(
"enable_3d_clouds"
,
"true"
);
settings
->
setDefault
(
"cloud_height"
,
"120"
);
settings
->
setDefault
(
"menu_clouds"
,
"true"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment