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
d7465925
Commit
d7465925
authored
13 years ago
by
Perttu Ahola
Browse files
Options
Downloads
Patches
Plain Diff
Faster player movement and smaller collision box
parent
55d310b0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/player.cpp
+3
-3
3 additions, 3 deletions
src/player.cpp
with
3 additions
and
3 deletions
src/player.cpp
+
3
−
3
View file @
d7465925
...
@@ -293,8 +293,8 @@ void LocalPlayer::move(f32 dtime, Map &map, f32 pos_max_d,
...
@@ -293,8 +293,8 @@ void LocalPlayer::move(f32 dtime, Map &map, f32 pos_max_d,
// This should always apply, otherwise there are glitches
// This should always apply, otherwise there are glitches
assert
(
d
>
pos_max_d
);
assert
(
d
>
pos_max_d
);
float
player_radius
=
BS
*
0.3
5
;
float
player_radius
=
BS
*
0.3
0
;
float
player_height
=
BS
*
1.
7
;
float
player_height
=
BS
*
1.
55
;
// Maximum distance over border for sneaking
// Maximum distance over border for sneaking
f32
sneak_max
=
BS
*
0.4
;
f32
sneak_max
=
BS
*
0.4
;
...
@@ -622,7 +622,7 @@ void LocalPlayer::applyControl(float dtime)
...
@@ -622,7 +622,7 @@ void LocalPlayer::applyControl(float dtime)
// Random constants
// Random constants
f32
walk_acceleration
=
4.0
*
BS
;
f32
walk_acceleration
=
4.0
*
BS
;
f32
walkspeed_max
=
4
.0
*
BS
;
f32
walkspeed_max
=
5
.0
*
BS
;
setPitch
(
control
.
pitch
);
setPitch
(
control
.
pitch
);
setYaw
(
control
.
yaw
);
setYaw
(
control
.
yaw
);
...
...
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