mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Make comments to be doc-comments
This commit is contained in:
parent
6319dcfc22
commit
69cea513ee
@ -567,7 +567,7 @@ impl Body {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Body collider
|
/// Body collider
|
||||||
pub fn collider(&self) -> Collider {
|
pub fn collider(&self) -> Collider {
|
||||||
if let Body::Ship(ship) = self {
|
if let Body::Ship(ship) = self {
|
||||||
ship.make_collider()
|
ship.make_collider()
|
||||||
@ -584,10 +584,10 @@ impl Body {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// How far away other entities should try to be. Will be added upon the other
|
/// How far away other entities should try to be. Will be added upon the
|
||||||
// entity's spacing_radius. So an entity with 2.0 and an entity with 3.0 will
|
/// other entity's spacing_radius. So an entity with 2.0 and an entity
|
||||||
// lead to that both entities will try to keep 5.0 units away from each
|
/// with 3.0 will lead to that both entities will try to keep 5.0 units
|
||||||
// other.
|
/// away from each other.
|
||||||
pub fn spacing_radius(&self) -> f32 {
|
pub fn spacing_radius(&self) -> f32 {
|
||||||
self.max_radius()
|
self.max_radius()
|
||||||
+ match self {
|
+ match self {
|
||||||
|
Loading…
Reference in New Issue
Block a user