Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jochen Bauer
spn-gameserver
Commits
d7084503
Commit
d7084503
authored
May 09, 2018
by
Thomas Kolb
Browse files
Tuned bot radius formula
parent
c384c788
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Snake.cpp
View file @
d7084503
...
...
@@ -53,7 +53,8 @@ void Snake::ensureSizeMatchesMass(void)
}
// update segment radius
m_segmentRadius
=
std
::
sqrt
(
m_mass
)
/
2
;
m_segmentRadius
=
std
::
pow
((
20
*
m_mass
+
100
),
0.3
)
-
3.9810717055349722
;
// 100**0.3 --------^
}
real_t
Snake
::
maxRotationPerStep
(
void
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment